[Tweener] Getting tween target values

Bradley bradley at seven2.net
Mon Jul 28 09:30:52 PDT 2008


I've run into a problem with tweener. There seems to be a feature  
missing. Currently there doesn't seem to be a way to get the end  
target value of a specific tweening. I see the getTweens method, but  
it only returns the names of the properties being tweened. It seems  
like there should be another method called getTweenTarget where you  
would pass the object, and property name and it would tell you where  
the property is going to end up when the tween is complete and  
possibly the time left until it arrives (maybe this should be another  
method or maybe tweener should also be able return all the tween  
parameters acting on an object).

I'm working on a class/package that needs to know the final tween  
target position internally. It is easy enough to store the target  
position within the class before the tweening, but in this case my  
class needs to be made to account for tweens added both internally  
and added outside of the class by the end developer. In this case it  
is impractical to ask the end developer to pass target values into my  
class every time a tween is added externally to my class (but maybe  
for the the current implementation, this is what I will do).

I've run into this issue before. Within this project there are  
several places that would benefit from the added feature. In general  
I think it would make applications simpler if it weren't required to  
store such tween parameters in a variable every time we might need to  
retrieve them.

Please, all, let me know what you think. Am I missing something? Does  
this seem like an issue that should be resolved?

Thanks to all! Tweener rocks, life would suck without it!
-Bradley


More information about the Tweener mailing list