For those who find this via search: MultiVarTweens can’t access private variables – they are little entities of their own and live their own lives, even if you call them from within another entity. I had to change my “Impulse” variables to public in order for this to work
This doesn’t make any sense to me… the object very clearly DOES have the property and access to it!
Check it out:
public function addImpulse(x:Number = 0, y:Number = 0, z:Number = 0):void
{
impulseX += x; //
impulseY += y; // these are all private variables of this class
impulseZ += z; //
if (impulseEnd) FP.world.addTween(impulseTween)
impulseEnd = false;
impulseTween.tween(this, { impulseX:0, impulseY:0, impulseZ:0 },
dragTime, dragFunction); //this is where the error occurs
}
when this is called, I get this error:
[Fault] exception, information=Error: The Object does not have the property"impulseZ", or it is not accessible.