tie up an object to a mask that is being tweened
Hi,
I have a mask that is being tweened programatically and then I have an object - a line at the bother of the mask that I want to move together with the mask as if they were tied up together. Is there a way to do it without tweening the line separately as well? I mean to give the line some property so that it knows that it should always copy the motion of the mask.
This is my code:
myTween1 = new Tween(mask1,"x",null,mask1.x,mask1x,TWEEN_TIME,true);
new Tween(line1,"x",null,line1.x,line1x,TWEEN_TIME,true);
And I want to get rid of the second line because sometimes it happens that the mask and the line aren't doing the same motion and I can't figure out why. The tween is run after MouseEvent.ROLL_OVER.
Thanks for answer.
Cheers