Jump to content

Starting/stopping Swf Within Html


richiej
 Share

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...