RE: [flexcoders] FlashVars not working

2007-02-06 Thread Battershall, Jeff
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

Re: [flexcoders] FlashVars not working

2007-02-06 Thread Brendan Meutzner
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: - ...

Re: [flexcoders] FlashVars not working

2007-02-06 Thread Clint Tredway
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

Re: [flexcoders] FlashVars not working

2007-02-06 Thread Brian Dunphy
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