...

View Full Version : Xhtml valid Flash - Firefox issue



Daf
01-12-2010, 01:10 AM
Hi all,

http://www.sandiedickey.com/flashtest.html

Client is using a company, IndieHeaven, that helps market DIY CD sales - they offer some widgets for use and the client would like to use them ... my only problem is that the widget code:


<div style="position:relative; width:170px; height:195px; padding:0px; margin:0 auto; border:2px solid #cd5c5c; background: URL(http://www.indieheaven.com/img/sell_back.jpg) no-repeat;">
<div style="position:absolute;top:10px;left:10px">

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="150" height="150" id="sell_music" name="sell_music" align="top">
<param name="movie" value="http://www.indieheaven.com/flash_player/sell_music.swf" />
<param name="flashvars" value="file=http://www.indieheaven.com/_.php%3Fid%3D51323" />
<param name="quality" value="high" /><param name="allowScriptAccess" value="sameDomain" />
<embed src="http://www.indieheaven.com/flash_player/sell_music.swf" allowScriptAccess="always" width="150" height="150" id="sell_music" name="sell_music" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=http://www.indieheaven.com/_.php%3Fid%3D51323" />
</object>
<br />
<a href="http://www.indieheaven.com/artist_main.php?id=51323" target="_blank"><img src="http://www.indieheaven.com/img/buy_now.gif" border="0" height="25" width="150"></a>

</div>
</div>

doesn't validate due to the "Embed" tag - I'm using the XHTML Strict doctype.

I did a lot of research and found [what suppose to be] the answer to the validation issue:


<div style="position:relative; width:170px; height:195px; padding:0px; margin:0 auto; border:2px solid #cd5c5c; background: URL(http://www.indieheaven.com/img/sell_back.jpg) no-repeat;">
<div style="position:absolute;top:10px;left:10px">

<object type="application/x-shockwave-flash" data="yourswf.swf" width="150" height="150" id="sell_music" name="sell_music">
<param name="movie" value="http://www.indieheaven.com/flash_player/sell_music.swf" />
<param name="flashvars" value="file=http://www.indieheaven.com/_.php%3Fid%3D51323" />
<param name="quality" value="high" /><param name="allowScriptAccess" value="sameDomain" />
You must have Flash installed to use this application

<br />

<a href="http://get.adobe.com/flashplayer/">Get Flash</a>
</object>

<br />
<a href="http://www.indieheaven.com/artist_main.php?id=51323"><img src="http://www.indieheaven.com/img/buy_now.gif" style="border:none"
height="25" width="150" alt="Buy the new CD!" /></a>
</div>
</div>

but ... Firefox and Opera will not show the Flash movie... :/

I thought that the "type" attribute was the key but apparently not.

I'm not keen on the Satay as I don't want to have to use any additional elements - and I'm fairly clumsy with the swfobject - JS solution....

Any help in getting this bit of code to:

1- validate
2 Play in non IE browsers would be much appreciated! :)

Thanks
Daf

_Aerospace_Eng_
01-12-2010, 01:19 AM
You need to change the data value to match your movie value in your param element.

Daf
01-12-2010, 11:53 AM
Ack!!! Man! I hate that - I guess I was looking so hard I totally overlooked the obvious!

Thanks so much for the sharp eye, Aerospace! :) :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum