views:

316

answers:

1

I am trying to generate an <object> tag only embed code and cannot get Firefox to pass Flash along the FlashVars values. This seems to work everyplace else that I've tried it but fails in Firefox. Here is a sample of the embed that I'm using:

<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="550" height="400" id="Main" align="middle" data="Main.swf"> <param name="movie" value="Main.swf" /> <param name="allowScriptAccess" value="always" /> <param name="allowFullScreen" value="true" /> <param name="bgcolor" value="#ffffff" /> <param name="quality" value="high" /> <param name="menu" value="false" /> <param name="FlashVars" value="foo=1" /> </object>

Please note that the Flash experience does show up in Firefox but when I do traces and actually run the application this fails to read the values. This has had me scratching my head for a day and I'm pretty stumped. If anyone has any guidance on this it would relly be appreciated.

A: 

have you tried

<param name="movie" value="Main.swf?foo=1" />

An 'oldschool' way of passing parameters to the SWF.

Les
What I would like to do is not have to pass the FlashVars twice in an embed. In the example you gave I would have to do this both in the param and in the data attribute of the object tag. In Firefox you use th data attribute so it knows where the SWF lives since it doesn't respect the param location reference. Not quite what I'm looking for but hanks for the suggestion, though.
Liam
is there a reason why you don't use something like swfobject?
Les
SWFObject isn't always an option, and in my case I would like to not rely upon JavaScript where a straight embed will, theoretically, work. This may be one of those browser limitations which just keeps things from being as compact and clean as I like. This also would help for sharing an embed code rather than having an embed nested within an object tag.
Liam