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 2/6/07, Brendan Meutzner <[EMAIL PROTECTED]> wrote: > > > > > > > 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: > > ------------------------- > ... > "allowScriptAccess","sameDomain", > "flashvars", "var1=true&var2=false", > "type", "application/x-shockwave-flash", > ... > --------------------------------------------------------- > > > Brendan > > 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 name='flashVars'value='theText=this is a text'> > > etc... > > <embed flashVars='theText=this is a text'> etc... > > </embed> > > </object> > > > > Then from within the movie I call my function ON COMPLETE > > > > private function initApp():void{ > > requestText.text = theText; > > } > > > > I took this from the livedocs but nothing seems to work... > > Am I writing something wrong? sintax error or what? > > this shouldn't be that diff'cult! > > > > Thanks > > -g > > > > > > > > -- > Brendan Meutzner > Stretch Media - RIA Adobe Flex Development > [EMAIL PROTECTED] > http://www.stretchmedia.ca -- Brian Dunphy