Jump to content

Starting/stopping Swf Within Html


richiej

Recommended Posts

Hi,This couldn't be simpler - but I can't get it to work. When the page loads, I get a player (great) but the music plays as soon as I load the page. I can stop and start it with the player controls. Question is: how do I prevent it from playing on load???<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><!-- Created with the CoffeeCup HTML Editor 2008 --><!-- http://www.coffeecup.com/ --><!-- Brewed on 2/18/2009 5:43:35 PM --><head> <title>test</title> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /></head><body><objectclassid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"><param name="FileName" value="cbells.swf" ><param name="ClickToPlay=true"><param name="AutoStart=false></param></object></body></html>I would really appreciate any help I can get - I've been working on this for weeks.Rich

Link to comment
Share on other sites

Why don't you make the swf itself to start only when play button is pressed, instead of doing it in HTML ?<param name="AutoStart" value="0"> . Some browsers like firefox neglect autostart parameters.

Link to comment
Share on other sites

Your HTML needs to be validated first. After that you can read the following.The reason the song starts playing on its own is because that's how the flash movie was made. You would have to edit the flash movie to change it. Your current <object> tag will only work in Internet Explorer. If you want it to work well on all browsers, use this:

<object type="applications/x-shockwave-flash" width="500" height="440" data="cbells.swf"><param name="movie" value="cbells.swf"></object>

It looks like you're using a graphical editor to make your page. I don't recommend it, you should learn HTML and make the pages knowing what they do.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...