PDA

View Full Version : xhtml flash sound


dualfever
02-05-2008, 07:59 PM
I created some flash to go on the site i am redesigning at the moment, and the flash was working correctly, all it does is play and stop a sound, it should also play at startup.

I was wondering whether to put this thread in here or flash, the only reason i put it in html is because once i went through the procedures of making flash valid xhtml the sound stopped playing.

here is the website the flash is in the menu bar:

http://www.keyspacehosting.com


<object type="application/x-shockwave-flash"
data="flash/player.swf" width="160" height="25">
<param name="movie" value="flash/player.swf" />
</object>



Anyone got a clue why or is this actually the flash itself?

Also the play button works in IE but not in Firefox...wtf?

Any help would be appreciated thanks.

digipete
02-05-2008, 10:45 PM
<object type="application/x-shockwave-flash"
data="flash/player.swf" width="160" height="25">
<param name="movie" value="flash/player.swf" />
</object>


This is only a guess, but I don't think the forward slash is necessary at the end of your "<object" tag. This is because the object tag closes with a "</object>"

You only put a forward slash in tags that don't close like break tags "<br />".

Pete

dualfever
02-06-2008, 10:06 AM
Took me 5 minutes to see what you mean, then i realized where you actually meant, but i do not have a forward slash on the object code, its on the <param> tag.


<object type="application/x-shockwave-flash" data="flash/player.swf" width="160" height="25">

<param name="movie" value="flash/player.swf" />

</object>


Here that maybe clearer

VIPStephan
02-06-2008, 12:03 PM
Ideally you would be including your object with swfObject (http://blog.deconcept.com/swfobject/).