PDA

View Full Version : javascript controlling swf volume


andrew1234
07-31-2007, 04:19 PM
Im trying to edit the the volume of my swf from the html? but it wont work??

<a href"#" onclick="javascript:document.mymovie.playME.setVolume(100);">mute movie</a>


the SWF in the HTML<object> Is labeled "mymovie"

the sound in the flash swf is attached like this

//attach sound
playME = new Sound();
playME.attachSound("sound1");
playME.start(1,1000);
//set volume
playME.setVolume(100);


For your information::::
if i want to stop my movie from playing.. the line below works in IE

<a href"#" onclick="javascript:document.mymovie.stop();">stop movie</a>

please can you help with the volume issue

Thanks

A