[Tweener] onComplete problem

charlie Montagut charlie.montagut at gmail.com
Thu Sep 25 08:52:34 PDT 2008


Uh infact i ommited it just in my mail. In my original code time is set to
1:

Tweener.addTween(nomProduit,{scaleX:0.1,rotation :2,y:50,
alpha:0,time:1,delay:0.2, transition:"easeOutCubic", onComplete:Next});


                function Next(){

                    removeChild(nomProduit);
                }




2008/9/25 Makc <makc.the.great at gmail.com>

> 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
> >
> >
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>



-- 
______________________________________

Charlie Montagut - Etudiant 2eme Année SRC

   tel : 0683332559 -
   skype: charlie montagut
   web: www.charlie-montagut.com
______________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20080925/b62d6ff3/attachment.htm>


More information about the Tweener mailing list