PDA

View Full Version : Flash and Forms


casbboy
2-16-04, 07:31 PM
I want to make a form that calls (action="run.php") a php to run the inserted variables. How do I create the form on flash?? I know how to use flash for graphics and animation and want to have the form come out after animation... I can use POST or GET for the form.

Please help

Thanks
Ryan

goodlookin001
3-10-04, 12:05 AM
well, there is a text box tool in flash. You will want to select the Text writing tool, and then in one of the proprties box at the bottom of the screen there is an option that lets you either have dynamic text, static text, or INPUT text. You will want to select the input text option. From there, you click and drag however long of a textbox you want on the scene you want it in. NOTE: it will not draw a white box behind it for you.....you will need to draw a white box on another layer behind the input textbox. From there, there are a few options in that box underneath the scene that says "instance name", "Var" and other miscelleneous text items. Fill in the var (variable) name that you want to call it. From here, you need to make a send button. Actionscript on that button should have something along the lines of:

on (Release) {
subject = "subject of email title";
recipient = "youre_email@here.com";
loadVariablesNum("your_script_here.php", 0, "GET");
}

the loadVariablesNum is important cause this is what calls up your perl or php or any cgi script you are wanting to use. Now the rest is to make your script or find one :) Good luck.