<div dir="ltr">Uh infact i ommited it just in my mail. In my original code time is set to 1:<br><br>Tweener.addTween(nomProduit,{scaleX:0.1,rotation :2,y:50, alpha:0,time:1,delay:0.2, transition:&quot;easeOutCubic&quot;, onComplete:Next});&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; function Next(){<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; removeChild(nomProduit);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br><br><div class="gmail_quote">
2008/9/25 Makc <span dir="ltr">&lt;<a href="mailto:makc.the.great@gmail.com">makc.the.great@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
you have ommited time parameter so it probably tweens instantly.<br>
<div><div></div><div class="Wj3C7c"><br>
On Thu, Sep 25, 2008 at 5:37 PM, charlie Montagut<br>
&lt;<a href="mailto:charlie.montagut@gmail.com">charlie.montagut@gmail.com</a>&gt; wrote:<br>
&gt; Hi everyone,<br>
&gt;<br>
&gt; Can I remove a child after tweening this child?:<br>
&gt; The idea is to have a motion when myClip is added to stage ( tweening is<br>
&gt; done in the constructor of this myClip), and the another just before it&#39;s<br>
&gt; removed from the stage.<br>
&gt;<br>
&gt; For example this code:<br>
&gt;<br>
&gt; tweener.addTween(myClip,{alpha:0, transition:&quot;linear&quot;,<br>
&gt; onComplete:removeMyClip})<br>
&gt;<br>
&gt; function removeMyClip() {<br>
&gt;<br>
&gt; removeChild(myClip);<br>
&gt;<br>
&gt; }<br>
&gt;<br>
&gt; Because i tried to do something similar, and the child is removed during the<br>
&gt; tweening motion. I don&#39;t understand where i failed.<br>
&gt;<br>
&gt; if anybody knows a method to do this or have an answer...<br>
&gt;<br>
&gt; Thanks you all.<br>
&gt;<br>
&gt; Charlie<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div><div><div></div><div class="Wj3C7c">&gt; _______________________________________________<br>
&gt; Tweener mailing list<br>
&gt; <a href="mailto:Tweener@lists.caurinauebi.com">Tweener@lists.caurinauebi.com</a><br>
&gt; <a href="http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com" target="_blank">http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Tweener mailing list<br>
<a href="mailto:Tweener@lists.caurinauebi.com">Tweener@lists.caurinauebi.com</a><br>
<a href="http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com" target="_blank">http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>______________________________________<br><br>Charlie Montagut - Etudiant 2eme Année SRC<br><br> &nbsp; &nbsp;tel : 0683332559 - <br> &nbsp; &nbsp;skype: charlie montagut<br> &nbsp; &nbsp;web: <a href="http://www.charlie-montagut.com">www.charlie-montagut.com</a><br>
______________________________________<br>
</div>