Flash Question
Flash Question
Out of context: Reply #1
- Started
- Last post
- 1 Response
- 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;