flashvar doesn't get passed
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?