Chris. If you do in fact have valid string values for type and loRef being passed in, then there should be no reason you can't get to them in IE6 if they have FP9+
var loType:String = this.loaderInfo.parameters.type;var loName:String = this.loaderInfo.parameters.loRef; I am unsure where/when you are running your code to get the Flashavars though. You might want to delay a frame before trying to access the vars (Flash can be funny sometimes in regards to when things should be available vs when they actually are) Also, have you tired it in Firefox / Chrome on your own machine to verify that IE6 is the edge case, and not Safari? Aran On Tue, Jan 26, 2010 at 3:06 AM, TDC <[email protected]> wrote: > Hello, and thanks for looking at this question. > > I have written the following simple embedding code: > > <!-- Flash Movie --> > <div align="center" style="position:absolute; bottom: 24px; > clear:both; right:36px;"> > > <script type="text/javascript"> > var flashvars = {}; > flashvars.type = "{type}"; > flashvars.loRef = "{loRef}"; > var params = {}; > params.play = "false"; > params.menu = "false"; > params.quality = "high"; > params.allowscriptaccess = "sameDomain"; > var attributes = {}; > attributes.id = "swf01_page10"; > attributes.name = "name"; > attributes.align = "middle"; > > swfobject.embedSWF("../../medialibrary/2DII/2DII0006.01.swf", > "div_swf01_page10", "440", "360", "9.0.0", false, flashvars, params, > attributes); > </script> > > <!-- This Div will be replaced by the Flash movie, if the movie can > load. It must have a unique Id for this page. --> > <div id="div_swf01_page10"> > <img src="{media}" alt="{mediaAlt}"/> > </div> > > </div> > > In my Flash file I have the following actionScript code: > > //loader info > var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters; > var loName:String = String(paramObj["loRef"]); > var loType:String = String(paramObj["type"]); > > When viewed in Safari on my Mac all is fine. However my client has IE6 > on PCs and no matter what I try I can't get the flashvars to be passed > to the Flash file. It's very curious. > > I would be very grateful if anyone can suggest where I am going wrong. > > Many thanks > > Chris > > -- > You received this message because you are subscribed to the Google Groups > "SWFObject" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<swfobject%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/swfobject?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SWFObject" 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/swfobject?hl=en.
