[Tweener] Positive to negative problems

Zeh Fernando zeh at zehfernando.com
Fri Oct 3 06:44:27 PDT 2008


> Hi all...
> I'm trying to Tween the *_color* property of a black background to white 
> and a white text to black, but there's some kind of bug in it which 
> gives me a sporadic '*green*' and '*magenta*' colors instead of 
> black/white and white/black.
> I am using the latest version of Tweener (1.31.72) and I saw that this 
> behaviour is supposingly solved in this latest version.
> 
> Is there another way to Tween a positive MovieClip to a negative one 
> (and the other way around)?

Hi Dave,

The problem supposedly solved by the latest patch is some sort of very 
strange bug that made something like that - creating cyan colors - when 
you started Tweens too fast (for example, on successive rollover and 
rollout of a button). The reason why this bug is strange is because it's 
not really apparent why it showed up, and it was dependent on some 
random compilation information - you'd compile an SWF and always have 
the bug happen, then you'd compile it again and never have it show up.

Not sure if that's what you're having, but just to be more clear on the fix.

There's one other change by Francis Turmel I still have to commit which 
is the ability to properly remove tweens by using their "special 
property splitter" names, so a removeTweens for "_color" can properly be 
done. This would probably help a bit on your case since you'd be able to 
stop any tween before starting new ones and "starting fresh". In the 
mean time, on your specific case, you can try this:

1. Before starting a tween, do a removeTweens(objectname) to remove all 
existing tweens (useful if you don't have other tweens on the object); or,

2. Do a tween with the actual color properties (_color_redMultiplier, 
_color_redOffset, etc)... this is of course a bit more annoying to work 
with, but it gives you a lot more control than just _color.

Zeh


More information about the Tweener mailing list