How to set criteria to Play/Pause buttons
How to set conditional criteria to Play/Pause buttons?
i.e. to pause the animation only if the animation is playing; and to play the animation again only if the animation is paused. thanks.
on(release) {
play();
}
on(release) {
stop();
}