I'm trying to get started with passing paramaters to a flex project initially based on livedocs Using the Application.application.parameters object and Using flashVars as source
the mxml for project applicationParameters is <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initVars()"> <mx:Script><![CDATA[ // Declare bindable properties in Application scope. [Bindable] public var myName:String; [Bindable] public var myHometown:String; // Assign values to new properties. private function initVars():void { myName = Application.application.parameters.myName; myHometown = Application.application.parameters.myHometown; } ]]></mx:Script> <mx:VBox> <mx:HBox> <mx:Label text="Name: "/> <mx:Label text="{myName}" fontWeight="bold"/> </mx:HBox> <mx:HBox> <mx:Label text="Hometown: "/> <mx:Label text="{myHometown}" fontWeight="bold"/> </mx:HBox> </mx:VBox> </mx:Application> and I have amended the html wrapper with hardcoded values thus: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="applicationParamaters" width="100%" height="100%" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> <param name="movie" value="applicationParamaters.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#869ca7" /> <param name="allowScriptAccess" value="sameDomain" /> <param name="flashVars" value="myName=Nick&myHometown=London"> <param name="src" value="FlashVarsValues.mxml.swf"> <embed src="applicationParamaters.swf" quality="high" bgcolor="#869ca7" width="100%" height="100%" name="applicationParamaters" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" flashVars="myName=Nick&myHometown=London" src="FlashVarsValues.mxml.swf"> </embed> </object> However when I open the html page in a browser the variables do not appear Where am I going wrong -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/