1 Reply Latest reply: Nov 18, 2009 10:04 AM by RTSMikeM RSS

    MATRIX record in swf & compounding transforms

    RTSMikeM Community Member

      After reading over the Flash 10 file spec I want to play a bit with transformational matricies.

       

      If you have multiple MATRIX records in an SWF do the transforms compound each other?

      Or is the matrix a complete replacement of the previous matrix?

       

      Does flash operate similar to Postscript with gsave grestore like operators which allow the transformational matrics to be saved & restored?

       

      Just looking to understand the mechanism in detail.

       

      Thanks,

       

      Mike M

        • 1. Re: MATRIX record in swf & compounding transforms
          RTSMikeM Community Member

          After solving the problem a few weeks back I thought I would answer my own question for the benifit of others out there...

           

          Transformation matricies in flash must be supplied with each object that is placed. (PlaceObject2)

          Unlike postscript documents there is no storage of the current transformational matrix on the flash side.

          (I suppose I expected too much from flash!)

           

          As a developer you need to maintain your own matrix stack and push and pop a matrix as necessary for your needs.

           

          Mike M.