Flash Question
Flash Question
- Started
- Last post
- 1 Response
- mightyj
I have a movie clip that is being controlled by two btns. The btns make tell the movie clip to go left or right. I can only get it to call the action once. Basicly it is only moving the clip on mouse press one pixel to the left or right. I am trying to get it to have the clip keep moving on press until a certain condition is met. Any help would be great. Thanks in advance.
- urban100
btn.onPress = function() {
this.onEnterFrame = function() {
this._parent.mc._x++;
}
}
btn.onRelease = btn.onReleaseOutside = function() {
delete this.onEnterFrame;
}then add your conditional within the onEnterFrame function and if the condition is met... then do:
delete this.onEnterFrame;