Motion Tween has an instance name

I was preparing for a Flash CS4 demo when I noticed that there was an instance name field at the Properties panel when a motion tween was selected. On further investigation, I found out that you can name a motion tween instance and apply the motion to other movie clips instances with the following AS code:

<motion_tween_instance_name>.addTarget(<movieclip_instance_name>);

It is quite handy.

~ by brianchau on May 16, 2009.

Leave a comment