First thing I would point out in your code is that you are not
consuming the FlashVars correctly. Best practice is to always check
for the null before using it. =)
var flashVarsObject:Object = Application.application.parameters or
FlexGlobals.topLevelApplicaiton.parameters
if(flashVarsObject["parameterName"])
{
// do something here
}
Find more information at the following links --
http://livedocs.adobe.com/flex/3/html/help.html?content=passingarguments_3.html
http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/
Enjoy
V
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.