[Tweener] onComplete problem

charlie Montagut charlie.montagut at gmail.com
Thu Sep 25 07:37:12 PDT 2008


Hi everyone,

Can I remove a child after tweening this child?:
The idea is to have a motion when myClip is added to stage ( tweening is
done in the constructor of this myClip), and the another just before it's
removed from the stage.

For example this code:

tweener.addTween(myClip,{alpha:0, transition:"linear", onComplete:
removeMyClip})

function removeMyClip() {

removeChild(myClip);

}

Because i tried to do something similar, and the child is removed during the
tweening motion. I don't understand where i failed.

if anybody knows a method to do this or have an answer...

Thanks you all.

Charlie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20080925/fe1dbd83/attachment.htm>


More information about the Tweener mailing list