1 Reply Latest reply on Apr 3, 2013 12:20 PM by ksukat

    How to use FlashVars with flashbuilder 4.5

    ksukat Level 1

      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.

        • 1. Re: How to use FlashVars with flashbuilder 4.5
          ksukat Level 1

          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.