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
derobinson - 02 Nov 2006 19:10 GMT
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!