I have this object that can have multiple tweens over time. But I want to go back to his original state at any time. I also want to store the current tweenvars of the object at anytime, so I can tween back to that state.
So I need somthing like:
var tween:TweenMax = TweenMax.to(object, 1, {...});
this._startVars = tween.startVars;
after some time do some more tweens. (Could happen more than once)
var tween:TweenMax = TweenMax.to(object, 1, {...});
var currentStartVars = tween.startVars;
// and now append the currentStartVars to my _startVars (maybe I am tweening different properties in my seconds tween, so we need those in my _startVars as wel) Maybe the OverwriteManager can do something like that?
OverwriteManager.appendVars(this._startVars, currentStartVars);
And than I want to go back to my orginal state:
TweenMax.to(object, 1, this._startVars);
The other thing I want is to get the current tweenvars at any time (also when tweens are running)
this._currentVars = TweenMax.getCurrentVars(object);
So at anytime I can go back to that state I just saved in the _currentVars:
TweenMax.to(object, 1, this._currentVars);
Is something like this possible?