all groups > flash data integration > october 2006 >
You're in the

flash data integration

group:

Session Variables in Flash



Session Variables in Flash natg504
10/29/2006 9:58:16 PM
flash data integration: I'd like to create a website that displays a swf file. Is there a way I can
make it so that the content of the .swf file comes from session variables
(probably coldfusion). So, if someone types in their name, I want to save
their name to the database & then later display their name in the swf file. Is
this possible? Are there any good examples online somewhere?

Thanks
Re: Session Variables in Flash derobinson
11/2/2006 6:10:54 PM
You can pass variables into a Flash movie two ways. Either use URL variables
appended to the SWF call (http://www.mysite.com/myMovie.swf?myVar=value) or use
FlashVars in the embed/object calls.

Either way, the variable(s) will be available to you at the _root level of the
movie onLoad (so you can just reference myVar in your AS--after the movie has
completely loaded--and you're good to go).

Hope that helps!

AddThis Social Bookmark Button