i know about gotoandplay and gotoandstop but gotoandstop is just for ending the animation, i want that the buttons stays making the animation stop, leaving it in pause until u press the button...:S
i know about gotoandplay and gotoandstop but gotoandstop is just for ending the animation, i want that the buttons stays making the animation stop, leaving it in pause until u press the button...:S
At 8/10/06 07:03 AM, Barbaro666 wrote: i know about gotoandplay and gotoandstop but gotoandstop is just for ending the animation, i want that the buttons stays making the animation stop, leaving it in pause until u press the button...:S
on (release){
if (pauseFlag != 1){
stop();
pauseFlash = 1;
} else {
play();
pauseFlag = 0;
}
}
Think that should work. When you hit the button, it checks for a variable named pauseFlag. If the variable is equal to one, the animation plays, and changes the variable to zero. If it is then hit again, and the variable is not equal to one, the animation stops and the flag is set back to one.
Rough cut, and I'm sure everyone else can correct my coding errors
...
Thanks but...how do i put those codes, because i cant writte anything i have to choose actions...:S
At 8/10/06 07:15 AM, Barbaro666 wrote: Thanks but...how do i put those codes, because i cant writte anything i have to choose actions...:S
Find the button in the Actions Panel that changes it from Standard to Expert Mode. You can then copy and paste the codes I've given you.
...