• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

How to use FlashVars with flashbuilder 4.5

New Here ,
Apr 02, 2013 Apr 02, 2013

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.

Views

665

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 03, 2013 Apr 03, 2013

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines