PDA

View Full Version : How can I pass a variable from ASP.NET to flash


sagachoo
03-27-2008, 05:53 PM
I want to pass a variable from asp.net page to a flash movie on the same page


How do I do that?


Thank you

Choo

allenrabinovich
03-27-2008, 06:19 PM
When you are generating the embed code for Flash, you can set a parameter called FlashVars. This page has an example of how to generate the embed code for a Flash movie in ASP: http://www.permadi.com/tutorial/flashVars/

Inside the Flash app, the variables will be available in the root.loaderInfo.parameters -- where "root" is your top-level display object.