
Who uses Flash to create Web sites knows that the contact form (form of sending email) is one of the most used up.
I received many e-mails by users who demanded a tutorial explaining how to build one.
What I will explain then describes step by step how to create a basic form of sending email using Actionscript 3.0 and PHP.
Step 1 – Create FLA and Document Class
Create a FLA file and save it as name “main.fla.”
Create the Document Class, an AS file named “Main.as”, implemented in this way
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | package { import flash.display.*; import flash.events.*; public class Main extends MovieClip { public function Main() { addEventListener(Event.ADDED_TO_STAGE,init); } private function init(evt:Event):void { removeEventListener(Event.ADDED_TO_STAGE,init); trace("My Document Class has been created correctly"); } } } |







{ 6 comments… read them below or add one }
Just trying out the email application….
just testing email application (flash)
Test!
asdf
testing the application
TEEST