[Tweener] Overwrite last tween with _color property
Zeh Fernando
zeh at zehfernando.com
Thu May 28 12:03:04 PDT 2009
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> 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
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20090528/432a799e/attachment.htm>
More information about the Tweener
mailing list