PDA

View Full Version : Pass a post variable into Flash



DigitalPimp
August 21st, 2003, 05:06 PM
How can I pass a Form post variable into Flash?

claudio
August 21st, 2003, 11:23 PM
This might help you:
http://www.macromedia.com/support/flash/ts/documents/set_variables.htm#javascripthttp://www.macromedia.com/support/flash/ts/documents/set_variables.htm#javascript

comicGeek
August 22nd, 2003, 01:54 AM
I think you should read the tutorials about PHP and Flash.

http://www.kirupa.com/developer/actionscript/asandphp.htm

There are also other tutorials here that you can learn about dynamic data in Flash using PHP and MySQL.

Cheers!

:)

DigitalPimp
August 22nd, 2003, 10:15 AM
Thanks guys but I got it figured out.

ComicGeek, that PHP tutorial does me no good because we use ASP on our servers but thanks anyways.

What I did to get it to work was when I embed my movie into my web page I do this.


src="moviename.swf?postVar=<%=Request("postVar")%>"

What that does in ASP is look for a post variable called postVar and pass that along into the flash file.

Pretty cool stuff.