[Tweener] onUpdate timer

Baluta Cristian cristi.baluta at gmail.com
Thu Nov 20 01:06:35 PST 2008


you have to do this at the begining of the function:
function updateSlidePosition () {
  if (condition) return;
....
}

but the condition depends on when do you want to stop it. maybe you can
based on a x position of an object, or whatever ou want...


On Thu, Nov 20, 2008 at 4:20 AM, Jesse Lucas <namemeno at gmail.com> wrote:

> Hello,
>
> I was wondering if anyone knew of a way to stop the onUpdate timer in the
> middle of a tween?
>
> Tweener.addTween(this._slideContainer, {x:-(959 *
> (this._slideArray.length)), time: i * .5, transition:"easeInOutQuad",
> onUpdate:this.updateSlidePosition});
>
> I want to be able to stop the onUpdate timer with a conditional in the
> updateSlidePosition method.
>
> Thanks!
>
> Jesse
> _______________________________________________
> 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/20081120/c27df495/attachment.htm>


More information about the Tweener mailing list