PDA

View Full Version : Pass varaible value from html to flash


coolpills
06-23-2008, 03:06 PM
Hi All,

I need to pass a variable to flash from html using query string method. However only the varaible name is getting dispplayed in the flash file and not the value in the variable.

The requirement is such that the value in the variable dynamically changes. Accordingly the text field in the swf should get updated.

I have attached the file along with this thread.

Can somebody please help?


:o

sneakyimp
06-24-2008, 01:33 AM
Flash can talk to Javascript. In Actionscript 2, you would use fs_command or something like that.

Another way to get vars into flash is to append them query string style in the HTML after every occurrence of your SWF filename. I'm not sure that works with the new javscript style way of embedding a flash movie.