[Tweener] onComplete problem
Makc
makc.the.great at gmail.com
Thu Sep 25 07:46:14 PDT 2008
you have ommited time parameter so it probably tweens instantly.
On Thu, Sep 25, 2008 at 5:37 PM, charlie Montagut
<charlie.montagut at gmail.com> wrote:
> 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
>
>
>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
>
More information about the Tweener
mailing list