[Tweener] Tween function only fires once

Kevin Brail kbrail at zeitbyte.com
Sat May 10 15:43:25 PDT 2008


Ah. Thanks so much for your help.

 

 

 

  _____  

From: tweener-bounces at lists.caurinauebi.com
[mailto:tweener-bounces at lists.caurinauebi.com] On Behalf Of Baluta Cristian
Sent: Saturday, May 10, 2008 2:43 AM
To: tweener at lists.caurinauebi.com
Subject: Re: [Tweener] Tween function only fires once

 

{_y:-10, time:2}

so you text goes to _y = -10, and the next time it goes to _y = -10, that's
why.

On Sat, May 10, 2008 at 2:00 AM, Kevin Brail <kbrail at zeitbyte.com> wrote:

Hello Tweeners- 

 

I have a text box that is getting fed dynamically. When it updates with new
text, I want to tween a scroll effect.  The problem is that the Tween effect
only fires off once and not on subsequent updates.  The other functions fire
each time the condition is met.

 

Here is the code:

 

            public var x:Number = 0;

 

                          if (clip.txt.bottomScroll != x) {

 

                                    //This is a readout panel so I can see
what is updating.  These change upon update

                                    player.captions.errors.text =
clip.txt.maxscroll+" + "+clip.txt.bottomScroll+" + "+x ;

 

                                    //This fires only once

 
Tweener.addTween(player.captions.text.content.dyno_text,{_y:-10, time:2})

                                    //This essentially the same function
without the tween.   It fires each time upon update

 
player.captions.text.content.dyno_text._y =
_root.player.captions.text.content.dyno_text._y - 10;

                           

                             //resets the x value                

                            x =  clip.txt.bottomScroll;

                          };

 

 

Thanks in advance for any guidance!

Kevin

 

 

 


_______________________________________________
Tweener mailing list
Tweener at lists.caurinauebi.com
http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com




-- 
Cristi
www.ralcr.com 

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


More information about the Tweener mailing list