[Tweener] Tween function only fires once
Baluta Cristian
cristi.baluta at gmail.com
Fri May 9 23:42:43 PDT 2008
{_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/17463321/attachment.htm>
More information about the Tweener
mailing list