hi all-
i’m trying to keep my animations processor-friendly, so i’m trying to figure out ways to stop algorithmic animations once they’ve finished–can someone tell me if the else stop(); i’ve put in here does the trick, or will this keep evaluating on every enterFrame?
onClipEvent(enterFrame){
if (myAlpha <=100){
myAlpha=myAlpha +1;
this._alpha=myAlpha;
}else stop();
}
Yes and no. It will keep checking if it’s true or false. A solution might be using an extra frame, and use gotoAndStop to that frame, so that there will be no onClipEvent(enterFrame) in the extra frame. Like this: