PDA

View Full Version : Starting flash from a html-form and gettin' vars


duhuskermeg
08-07-2001, 12:14 AM
I've had some problems with getting variables from forms used to start flash..

I want to use html-forms with various ID's on each button.
Then I want flash to get these variables..

I cannot use loadvariable from a cgi or txt file because there will be different info each time the flash is loaded.

I tried to use both post and send method on the form.
Ihe variable in the form vas called MyID.
In flash I made a textfield with the same name as variablename, and ised the following actionscript:

MyID = MyID;

What else do I need to do?

Thanx in advance! :)

Jesse
08-07-2001, 03:52 AM
See the Passing Variables Aroudn tutorial which outlines how to include a variable dynamically into Flash via the EMBED tag... I thinkt hat's what you want. Or you could perhaps use javaScript and FSCommands (See teh FSCommand tutorial) but that's prolly harder and more buggy.

duhuskermeg
08-08-2001, 04:05 PM
Thanx!

I've got the variables over to Flash now.
Now I only have a concern with PHP (read new post :)


TranceMore