<embed FlashVars="id=123456"...>
so that it works in non-IE browsers. I bet your code works in IE the way you have it.
HTH,
Tom
My html wrapper contains the normal scripts to check the flash
version, etc.. And the embed code looks like this:
<object classid=""> id="UserStats" width="100%" height="100%"
codebase="" href="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" target="_blank" >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="" 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
![]()
SPONSORED LINKS
Software development tool Software development Software development services Home design software Software development company
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- [flexcoders] Re: Flashvars using Application.application Kyle
- Re: [flexcoders] Re: Flashvars using Application.applic... Tom Bray
- Re: [flexcoders] Re: Flashvars using Application.applic... Adam Dorritie
- [flexcoders] Re: Flashvars using Application.applic... Adam Dorritie
Reply via email to

