Sound in flash not playing... (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


Jordan -> Sound in flash not playing... (7/24/2009 20:04:46)

I have a flash jukebox I want to insert into my page. The code is generated straight from SWISH Jukebox.

I've got two test pages up.
In this page generated by SWISH Jukebox, the music plays.
<html>
<head>
<title></title>
</head>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="60" height="15">
  <param name="movie" value="music-home.swf">
  <param name="quality" value="high">
  <param name="bgcolor" value="#ffffff">
     <embed src="music-home.swf"      quality="high"
      type="application/x-shockwave-flash"
      width="60" height="15"
      bgcolor="#ffffff"
     >
    </embed>
</object>
</body>
</html>



When I insert the code into my Expression Web page like this, the flash is visible, but there is no sound. I've tried inserting the flash with Expression Web into my W3C page by using the insert>media>flash function and that did not work either.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled 1</title>
</head>

<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" height="15" width="60">
  <param name="movie" value="music-home.swf" />
  <param name="quality" value="high" />
  <param name="bgcolor" value="#ffffff" />
     <embed bgcolor="#ffffff" height="15" quality="high" src="music-home.swf" type="application/x-shockwave-flash" width="60">
    </embed>
</object>

</body>

</html>


Does this lack of sound have something to do with the W3C doc type? I'm at a loss. Thanks in advance.





themekings -> RE: Sound in flash not playing... (7/25/2009 9:41:36)

Try this code:



<object id="flash1" data="music-home.swf" style="width: 15px; height: 60px" type="application/x-shockwave-flash">
					<param name="movie" value="music-home.swf" />
					<param name="quality" value="Best" />
					<param name="wmode" value="transparent" />
</object>



BE SURE TO double click on the flash object under the design view of your page once you place the code to open the flash properties (or right click the flash object and select properties) and then select the "General" tab . Under the general tab you'll find the "Name" field. Rename the object to "flash1" then close the properties box. Save, then preview. (F12)

This is also assuming the .swf file is located in the same root directory as the page your flash file is located on.

Also you may need to create a DIV code to place the object accordingly on your page. But for test purposes this should work for now.....




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
4.882813E-02