Seb Lee-Delisle

Menu

MovieClip.transform.matrix experiments…

Just been playing with the MovieClip.transform.matrix property to copy one movie’s rotation, scaling and position to another, and it’s been behaving a little unexpectedly… Here’s an example:


movieclip2.transform.matrix = movieclip1.transform.matrix;

This code copies movieclip2‘s position, scale and rotation to that of movieclip1. But importantly, it only sets movieclip2‘s transform
object, and not its _xscale, _yscale, and _rotation properties. Which you need to adjust manually, it seems.

I’ve been making some smart code that manually caches a bitmap version of a movie… I’ll be posting that soon.

Update : interestingly, it does seem to set the second movieclip’s _x and _y properties…

This entry was posted in Actionscript, Flash. Bookmark the permalink.

Comments are closed.