Skip to main content
Inspiring
May 30, 2013
Question

flashvar doesn't get passed

  • May 30, 2013
  • 1 reply
  • 427 views

I've added a textfield on the stage. In the html file I've added this line:

<PARAM NAME=FlashVars VALUE="<?php echo($QUERY_STRING);?>">

So when I enter www.mysite.nl?testvariable=2, the flashvar 'testvariable' which has a value of '2' is being passed to flash

In Flash I'm using:

var FlashVars:Object = this.loaderInfo.parameters;

for (var variable:String in FlashVars)

{

   myText.text=variable + ":" + FlashVars[variable];

}

But it doesn't show my passed variable/value. Instead it shows <?php echo($QUERY_STRING);?> in the textfield. Am I doing something wrong?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 30, 2013