View Full Version : Clicks
BUroKHUli
March 25th, 2003, 11:45 PM
Is there an actionscript that STOPS the music on FIRST CLICK, then RESUMES on the 2nd Click? So everytime you click, SOUND STATES turns ON & OFF?
kode
March 26th, 2003, 12:16 AM
you can use a variable for that...
myButton.onRelease = function() {
if (!playing) {
mySound = new Sound();
mySound.attachSound("mySound");
mySound.start();
playing = true;
} else {
mySound.stop();
playing = false;
}
}
;) =)
BUroKHUli
March 26th, 2003, 11:43 PM
ey,
KaX, thanks! Although I managed to solve it by the Easy Way, with the use of TIMELINE....hehehehe, Ill try urs style instead. Thank you man!!
kode
March 27th, 2003, 02:44 AM
ok =)
no problem ;)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.