TweenMax V11
If I call the "moveContent" function while the object (_holder.content_mc) is still tweening (x property) the onComplete function is called twice.
The TweenMax documentation states:
2 (AUTO): (used by default if OverwriteManager.init() has been called) Searches for and overwrites only individual overlapping properties in tweens that are active when the tween begins.
Why doesn't this work? I am tweening the x property of _holder.content_mc ... therefore the tweening of the x property is "overlapping" and should be overwritten.
If I substitute "overwrite:3" for "overwrite:2" it works perfectly.
OverwriteManager.init()
private function moveContent(position:Number):void
{
var currentx:Number = _holder.content_mc.x;
var speed:Number = Math.abs(position - currentx)/500;
TweenMax.to(_holder.content_mc,speed,{x:position,overwrite:2,ease:Quad.easeInOut,onComplete:moveTagDown});
}