RE: [Flashcoders] flashvars -> swfObject not working
Well that's very interesting, Cedric. My shower curtain is the MBTA system in Boston. It isn't Flash related, but it could maybe pass for being similar to the poster I have at work diagramming all the AS3 classes and their relationships. Your bathroom art is probably more colorful. - MM It may help OR not: I paint these on pictures (nice pictures by the way) I plug to my toilet's walls. It is fun, helps me remember important illogical stuff, and assures me my toilet's walls get updated quite frequently, and no one else except me understands these, which tends to comments like "wow, there's art in your toilets !" ;) By the way, I am looking forward to the day someone writes new comments on my toilet's walls :P Maybe, there is a 'place' somewhere for a book in that verve ? :S ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flashvars -> swfObject not working
It may help OR not: I paint these on pictures (nice pictures by the way) I plug to my toilet's walls. It is fun, helps me remember important illogical stuff, and assures me my toilet's walls get updated quite frequently, and no one else except me understands these, which tends to comments like "wow, there's art in your toilets !" ;) By the way, I am looking forward to the day someone writes new comments on my toilet's walls :P Maybe, there is a 'place' somewhere for a book in that verve ? :S ++ Cedric That's right Cedric! When am I going to remember that? It's burned me a few times already. Thank you very much for the reminder. - MM -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Cedric Muller Sent: Thursday, July 29, 2010 9:02 AM To: Flash Coders List Subject: Re: [Flashcoders] flashvars -> swfObject not working Hello Michael, You have to get the FlashVars parameters from the root.loaderInfo object. I know, I know how it feels, and I wouldn't be able to certainly tell you why it is passed through the root.loaderInfo pointer, although it /can/ be quite logical. When you get used to it, it gets logical too :) try the following: var flashvars:Object = LoaderInfo(root.loaderInfo).parameters; for (var e:Object in flashVars) { trace("e="+e+" flashVars[e]="+flashVars[e]); } hth, Cedric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] flashvars -> swfObject not working
That's right Cedric! When am I going to remember that? It's burned me a few times already. Thank you very much for the reminder. - MM -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Cedric Muller Sent: Thursday, July 29, 2010 9:02 AM To: Flash Coders List Subject: Re: [Flashcoders] flashvars -> swfObject not working Hello Michael, You have to get the FlashVars parameters from the root.loaderInfo object. I know, I know how it feels, and I wouldn't be able to certainly tell you why it is passed through the root.loaderInfo pointer, although it /can/ be quite logical. When you get used to it, it gets logical too :) try the following: var flashvars:Object = LoaderInfo(root.loaderInfo).parameters; for (var e:Object in flashVars) { trace("e="+e+" flashVars[e]="+flashVars[e]); } hth, Cedric ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] flashvars -> swfObject not working
Hello Michael, You have to get the FlashVars parameters from the root.loaderInfo object. I know, I know how it feels, and I wouldn't be able to certainly tell you why it is passed through the root.loaderInfo pointer, although it /can/ be quite logical. When you get used to it, it gets logical too :) try the following: var flashvars:Object = LoaderInfo(root.loaderInfo).parameters; for (var e:Object in flashVars) { trace("e="+e+" flashVars[e]="+flashVars[e]); } hth, Cedric Hi list... I'm unable to pass flashvars to a swf via swfObject(2.2). An online search hasn't turned up a solution either. The flashvars are passed via javascript like so: var v = {}; v.titleText = "XXX Financial and Operational Progress";swfobject.embedSWF("thing.swf", "mything", "450", "750", "9.0.28", false, v, {}, { });Within the swf, I've declared a corresponding public variable in the document class. public class MyClass extends Sprite{ public var titleText:String; public function MyClass(){ if(Capabilities.playerType == "External"){ // set defaults for the flashvars for testing purposes: titleText = "YYY Financial and Operational Progress"; } } } What am I missing? When testing in Flash, I get the "YYY..." message, but when testing in a browser, I get nothing. Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] flashvars -> swfObject not working
Hi list... I'm unable to pass flashvars to a swf via swfObject(2.2). An online search hasn't turned up a solution either. The flashvars are passed via javascript like so: var v = {}; v.titleText = "XXX Financial and Operational Progress"; swfobject.embedSWF("thing.swf", "mything", "450", "750", "9.0.28", false, v, {}, { }); Within the swf, I've declared a corresponding public variable in the document class. public class MyClass extends Sprite{ public var titleText:String; public function MyClass(){ if(Capabilities.playerType == "External"){ // set defaults for the flashvars for testing purposes: titleText = "YYY Financial and Operational Progress"; } } } What am I missing? When testing in Flash, I get the "YYY..." message, but when testing in a browser, I get nothing. Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders