Could someone (ideally senocular) help me simplify this code

I modified senocular’s waitbuttonanimations fla which is basically 3 mbuttons that each play an mc. But when a button is pressed it waits untill the previous buttons mc plays its out animation before it plays its in animation.

Anyway, i modified this so that instead of an animation tween it does an alpha fade. Here it is: www.s91931107.onlinehome.us/wait%20buttons2.swf.

The only problem is that i used 3 onEnterFrame events that are constantly playing even when they are not needed. If someone could take a look at my fla (it should’nt take long to see how it works) and see if they can come up with a more efficient way then that would be great. Thanks!

HERES THE FLA: www.s91931107.onlinehome.us/wait%20buttons2.fla.

on the enterframe use an if statement like if u did a fade out include this

if(this._alpha>100){
delete this.onEnterFrame
}

*Originally posted by flash4food *
**on the enterframe use an if statement like if u did a fade out include this

if(this._alpha>100){
delete this.onEnterFrame
} **

But then what if i need the onEnterFrame event to start up again (like if the user clicks the button again.)

anyone?