Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Daf
    Daf is offline
    Regular Coder
    Join Date
    Feb 2005
    Location
    East Texas
    Posts
    140
    Thanks
    32
    Thanked 2 Times in 2 Posts

    Xhtml valid Flash - Firefox issue

    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:

    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:

    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 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

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You need to change the data value to match your movie value in your param element.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    Daf (01-12-2010)

  • #3
    Daf
    Daf is offline
    Regular Coder
    Join Date
    Feb 2005
    Location
    East Texas
    Posts
    140
    Thanks
    32
    Thanked 2 Times in 2 Posts
    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!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •