Hi - this should be an easy one …
I have an onEnterFrame function, and when the clip goes passed a certain x value, it tweens alpha to 0, and then on complete, it removes its listener and is removed from the stage … here’s the loop :::
function loop(e:Event):void
{
function bye(me:MovieClip):void {
me.removeEventListener(Event.ENTER_FRAME,onEnter);
removeChild(me);
}
if(e.target.x > fibset.x)
{
var me:MovieClip = e.target;
var tw:TweenMax = new TweenMax(e.target, 1, {alpha:0.1,onComplete:bye(me)})
}
}
e.target wont be passed through on the onComplete function … hmm am i on the right lines?!