My html wrapper contains the normal scripts to check the flash
version, etc.. And the embed code looks like this:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="UserStats" width="100%" height="100%"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="UserStats.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#869ca7" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="flashvars" value="id=123456">
<embed src="UserStats.swf" quality="high"
bgcolor="#869ca7"
width="100%" height="100%" name="UserStats"
align="middle"
play="true" loop="false" quality="high" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
What I am trying to access is the value of the id param that I am
passing in through flash vars. I have tried to accomplish this by
using a param, and also by simply attaching my variable string to the
end of my embed src (ex: myFile.swf?id=123456). None of this seems to
work...
Thanks,
Kyle
--- In [email protected], "Matt Horn" <[EMAIL PROTECTED]> wrote:
>
> This code looks ok to me. Can you post your html wrapper (or the
> relevant portion of the wrapper) so we can see exactly how the vars are
> being passed in?
>
> matt horn
> flex docs
>
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Kyle
> > Sent: Monday, September 04, 2006 11:30 PM
> > To: [email protected]
> > Subject: [flexcoders] Flashvars using Application.application
> >
> >
> > I am continuing to have problems loading embedded variables
> > using the "apllication.application" method that is described
> > in the help manual.
> > Below is the code that I am trying to run. On top of this my
> > html file has a param set with the type flashvars and the
> > value set to myName=Kyle&myHometown=Duluth. Any thoughts?
> >
> > Thanks,
> >
> > Kyle
> >
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
> > <http://www.adobe.com/2006/mxml> "
> > creationComplete="initVars()">
> > <mx:Script><![CDATA[
> >
> > import mx.core.Application;
> > // 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>
> >
> >
> >
> >
> >
>
--
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/
<*> 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/