View Full Version : Pause a MC
LiquidRage
April 24th, 2003, 06:30 PM
hi does anyone know how to pause a MC? for example if i have a ball moving from left to right and i want to press a button that will pause it in between the movement so that it can stop and when i press the buttons one more time i can make it continue with what it was doing? plz help me with this as soon as u can anyone :cowboy:
kode
April 24th, 2003, 06:44 PM
you can use a variable... :)
ie.
myButton.onRelease = function() {
if (!paused) {
ball.stop();
paused = 1;
} else {
ball.play();
paused = 0;
}
};
and welcome to kirupa forum. ;) =)
fez
April 24th, 2003, 08:30 PM
AH!!! stop works? i needed this earlier and ended up doing a whole framesloaded procedure which didnt work..i thought stop(); would end the movie
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.