PDA

View Full Version : Validating xhtml code for flash mp3 files


WebLizzard
10-24-2009, 05:54 PM
Hi everyone,

Bear with me. I am new to using Flash and I have 2 questions. First, I am having a major issue validating my xhtml code. I am using Flash to play clips of mp3 files on a website. I am not understanding how to change these "embed" tags to "object" tags. Can someone give me an example of what I'd have to do to this first chunk of Flash code to validate it properly? Once I have an example to go by, I can change my other 30+ chunks for each music file. I tried following the W3C example, but I am really confused!

<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="25" height="25" id="mp3button" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="mp3button_1.swf" />
<param name="quality" value="high" />
<param name="FlashVars"
value="theFile=http://www.gravitybridgerecords.com/OnlyIf/TroubleWithSammy.mp3" />
<param name="bgcolor" value="#ffffff" />
<param name="wmode" value="transparent" />
<embed src="mp3button_1.swf"
FlashVars="theFile=http://www.gravitybridgerecords.com/OnlyIf/TroubleWithSammy.mp3" quality="high" bgcolor="#ffffff" width="25" height="25" name="mp3button" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object> The Trouble With Sammy

I really appreciate anyone who can help me. Thank you so much.
~The Web Lizzard :)

P.S.- The site is: http://www.gravitybridgerecords.com/