Copy link to clipboard
Copied
Greetings,
Running Flashbuilder 4.5 Premium for php.
I need to use flashvars to pass data to my application. Since you have to modify the html wrapper to define the flashvars,
and since flashbuilder generates debug version, etc, I need to know how to properly setup and use flashvars in flashbuilder.
Any help greatly appreciated.
Copy link to clipboard
Copied
Again,
I will answer my own question.
edit the index.template.html file in the html-template folder. In the javascript section of the file, add the
flashvars statement right after the line var falshvars ={};
mine looks like: flashvars.myVar = "myHost"
reference the flashvars in my application by adding code to the application creationComplete event handler.
FlexGlobals.topLevelApplication.parameters contains the flashvars.
I look through them looking for my specific variable.