You need to reference flashVars like this:
var myVar:String = Application.application.parameters.myVar;
Jeff
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of g_vaccarezza
Sent: Tuesday, February 06, 2007 1:48 PM
To: flexcoders@yahoogroups.com
To access the variables inside of Flex, you need to use '
Application.application.parameters.variableName'.
And the parameters need to be defined within the 'AC_FL_RunContent' method
in the html container (the one where hasRequestedVersion is true... as
follows:
-
...
try using this.parameters.theText
On 2/6/07, g_vaccarezza [EMAIL PROTECTED] wrote:
this is driving me mad!
Can you guys tell me what am I doin wrong?
See I have to pass a variable to my flex app then just fill a
textfield with that value.
I wrap the app like this:
object
param
A bit off topic, but I am using FlashVars extensively for a new
project, and I recommend switching to SWFObject instead of using the
built-in html-template for Flex 2 projects... better all around and
it's much easier to manage your FlashVars as it's all in one location.
Cheers,
Brian
On
4 matches
Mail list logo