Sie sind auf Seite 1von 3

Advanced PHP Contact Form with Upload 01

Skin 1 Help File


Copyright © 2009 OXYLUS Development
Website : http://www.oxylusflash.com
Email: contact@oxylusflash.ro
Support only on our public forum: http://forum.oxylusflash.com/advanced-php-contact-form-upload-01/

Hello, thank you for purchasing this product from Oxylus Flash, this document offers you information on how
to use and customize this component.

This contact form was designed to be used included into another flash project or embeded in html.

Folders in the Downloaded Pack

1-Source & Test – This folder contains the original source files (caurina and oxylus are part of the source files and
contain external classes), and the compiled .swf files. There are 2 skins included (Skin1 and Skin2) and each skin
folder contains the source files in the /source/ folder and the compiled .swf file (preview.swf) in the /deploy/ folder. This
help file refers to the Skin1 folder.

2 - Site Preview – This folder contains the preview demo we used as a live demo. This is only included as an
example/reference.

3 - PSD – This folder contains the Photoshop .psd files used in designing this file. They can be useful to quickly
experiment with different design styles.

Overview for embedding the app into your flash file – first method

The component can be found inside source/index.fla file, inside the Library (Ctr+L to show the Library), under the
folder named --Contact Us Component-- by Oxylus Flash . The corresponding symbol is named ContactUs_. If you
want to add it to another project, simply open the Library of index.fla, right click on --Contact Us Component-- by
Oxylus Flash and copy, then go to your project’s Library and paste the whole folder into the library – this is done only
in the .fla, I am talking about only about the folders existing in the fla. Next, you will also have to copy into your new
project’s root folder the caurina, ascb and oxylus folders ( these are the source folders from your disk ).

OXYLUS FLASH
Fax: +40 (0) 332 815 673
Mobile: +40 (0) 788 182 448
+40 (0) 742 094 758
+40 (0) 788 182 593
info@oxylusflash.com
http://www.oxylusflash.com
Next, you must copy paste the xml, submit.php and upload-cv.php into your test folder if you have selected one
from the new project’s fla or in the same folder as the fla.
In the library, you also have a folder called Background, if you want to add the background to your project drag
and drop onto the Stage the Background movie clip or, if you want to remove it, don’t drop onto the Stage the
Background movie clip, at this point you can even delete the Background folder from the library.
To use the contact us form, go into the library and drag onto the Stage the ContactUs_ movie clip.

Overview for embedding the app into your flash file – second method

You may want to simply load this component into your project just like loading any other swf file.
Place the component’s swf file, the xml and the php scripts into your project’s folder and, into your project load the
the component using loadMovie(“swfAddress”, your_holder_mc); or using the movieClipLoader. This is the most
simple method you could use, the basic help you would need about these can be found inside the flash help files.

Xml settings and data

The default xml name is data.xml.


If you are using this component embedded into html you can use the provided html and js code that came with
this package, there you will find the flashvars where you can choose what xml to load -> so.addVariable("xml",
"data.xml?time="+new Date().getTime()); the data.xml string is your xml name
If you are using this component into another flash project and you want to change it’s xml name please go into
the source files and open main.as and find xmlOb.load(_level0.xml == undefined ? "data.xml" : _level0.xml); -> change
data.xml to another name, save the .as file and compile the .fla.

<settingsScript>
<text>submit.php</text>
<upload>upload-cv.php</upload>
<uploadAddress> http://www.myWebsite.com/MyProject/files</uploadAddress>

<toggleUpload>1</toggleUpload>
</settingsScript>

OXYLUS FLASH
Fax: +40 (0) 332 815 673
Mobile: +40 (0) 788 182 448
+40 (0) 742 094 758
+40 (0) 788 182 593
info@oxylusflash.com
http://www.oxylusflash.com
This is the settings node, here you can change the php script used for sending the data and the php script
used for uploading the data onto your server.

Use the toggleUpload variable to disable or enable the upload button. Of course, if you want to keep the
upload button off at all times, there is no need to follow the guidelines specified below for creating a files folder, you will
never need it.

When uploading an attachment onto your server you must specify in the uploadAddress field the folder where
any attachment will be uploaded and kept. You will receive by email the link to the file.

How to specify the folder where any attachment sent to you will be uploaded:

- Upload all of your files, either embedded into another project, either in html onto your server ( on the root
folder or in any other folder you wish
- In that folder, create a folder called files and set it’s permissions to 777.
- In the xml specify it’s path: If you uploaded your project to www.something.com/myProject/ and here, you
created a folder called files, in the uploadedAddress field you must have
www.something.com/myProject/files
- That’s it !

In the content node, you have html formatted text. Here you can use most of the html tags supported by flash
and you can also choose some other contact details, or toggle them off at anytime, the variables are self-explainable.

<drop_down_content maskHeight="110">
<item title="Customer Support"></item>
<item title="Sales Department"></item>
<item title="Another Department with a very long name"></item>
<item title="Public Relations"></item>
</drop_down_content>

This node will create the drop down, this drop-down supports any number of items you want. Also, please do
not forget to change the maskHeight value according to your buttons height.

Setting up the address where you want to receive the email:

- Open submit.php
- Change the recipient value: $recipient = "your_email@myHost.com";
- Save and upload it to your server

Thank you for purchasing this new release from Oxylus Flash.

OXYLUS FLASH
Fax: +40 (0) 332 815 673
Mobile: +40 (0) 788 182 448
+40 (0) 742 094 758
+40 (0) 788 182 593
info@oxylusflash.com
http://www.oxylusflash.com

Das könnte Ihnen auch gefallen