[Tweener] Overwrite last tween with _color property

Kisu kisudvd at gmail.com
Thu May 28 14:06:00 PDT 2009


Hi,
thanks for the explaination.
I used to that in old Tweener version addTween remove all tweens in 
which was very convenient, just "add tween and forget" ;)
I have used to a new way ;)

Kisu

Zeh Fernando pisze:
> Hey,
>
> If the bug exists, it used to exist on the previous version version 
> too, as the only addition was the "if()" condition. A regular 
> removeTweens() remove all tweens from the objects regardless of time 
> or properties involved, so it's likely the offending (old) tween is 
> either from another property, or with a time that doesn't overlap the 
> new tween.
>
> I've just tested it, trying to replicate the error, but it worked as 
> intended testing both the AS2 and AS3 version, with or without 
> overwrite set to true (even without overwrite, it works simply because 
> the last update is the one which takes place before rendering).
>
> I think it's more likely some other part of the code that is adding a 
> new special tween, on time that doesn't overlap (remember that 
> overwrite doesn't delete "future" tweens in case a new tween doesn't 
> collide with it). Then you'd have a defective animation regardless of 
> version or overwrite usage.
>
>
> Zeh
>
> On Tue, May 26, 2009 at 6:04 PM, Kisu <kisudvd at gmail.com 
> <mailto:kisudvd at gmail.com>> wrote:
>
>     Hi! I have a some problem with 'overwrite' attribute using with
>     _color property. It seems doesn't overwrite last tween. I have a
>     look into the Tweener.as:
>
>     if (p_obj.overwrite) removeTweensByTime(nTween.scope,
>     nTween.properties.concat(nTween._specialPropertySplitterList),
>     nTween.timeStart, nTween.timeComplete); // Changed on 1.32.74
>
>     and I replace that with:
>
>     if (p_obj.overwrite) removeTweens(nTween.scope);
>
>     and now it works fine.
>     Is there a bug?
>
>     Thanks, Kisu
>     _______________________________________________
>     Tweener mailing list
>     Tweener at lists.caurinauebi.com <mailto: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
>   


More information about the Tweener mailing list