Hi,
This sounds like an ideal situation to use a variable to control the play.
frame 1....
Code:
//create a boolean variable to toggle
myPlay = false;
//constantly check the value of the variable
this.onEnterFrame = function() {
trace(_root.myPlay);
//set if statement to check variable value and control play
if (_root.myPlay == true) {
_root.nextFrame();
} else {
_root.gotoAndStop(1);
}
}
//test code to easily check the variable, change mouseDown to
//the method you prefer
_root.onMouseDown = function() {
//toggle the boolean variable to true
_root.myPlay = true;
}
A mind once stretched by a new idea never regains its original dimensions.
- Oliver Wendell Holmes
Bookmarks