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…

Related posts:

  1. More realtime easing : Flash 3D Boxes
  2. Font embedding WTF in Flash
  3. AS3 3D experiments
  4. New improved cacheAsBitmap!
  5. Flash Sparkler
This entry was posted in Actionscript, Flash. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">