Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

slowing down the mouse click for button sound

Status
Not open for further replies.

PantherRun

Technical User
May 18, 2004
100
US
hey out there;
I've got 2 movies connected by a button, click button and first movie is replaced by second movie. I've added a sound to the button, but I've notice that the faster you click your mouse the less you hear of the sound. Is there a way to delay implementation of the loadmovie command sitting on the button to give the button sound a chance to play its full length?
Thanks
Hoss
 
myButton.onRelease = function(){
s = new Sound();
s.loudSound("some.mp3");
s.start();
s.onSoundComplete = nextMovie;
}
function nextMovie(){
loaderClip.loadMovie("second.swf");
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top