I believe so... the docs suggest you have to hack it since the registration point is always top left. Do a translation in the negative by half the component's width and height (this will get you centered), rotate it, then do the reverse translation to put it back in it's original spot. This was working fairly reasonably for me in an ENTER_FRAME handler with an image:
img.transform.matrix3D.appendTranslation(-1 * img.width / 2, -1 * img.height / 2, 0); img.transform.matrix3D.appendRotation(1, Vector3D.Y_AXIS); img.transform.matrix3D.appendTranslation(img.width / 2, img.height / 2, 0); That'll just rotate infinitely -- it would be up to you to turn this into a reusable effect... HTH, Ryan -----Original Message----- From: flexcoders@yahoogroups.com on behalf of Russ Ferguson Sent: Thu 2/12/2009 4:46 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] 3D flip effect Thanks. Im targeting air 1.5. it seems to be working but I want to rotate from center and not from the top left hand corner. I think it has to do with matrix3D Any thoughts? Thanks ...russ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ryan Graham Sent: Thursday, February 12, 2009 3:09 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] 3D flip effect Yeah, it's possible with 3.2. As long as you are targeting FP10, check out the x, y, z, rotationX, rotationY, and rotationZ on DisplayObject in the docs... If you're targeting FP9, it's a much more manual process to organize the math and such... HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Russ Ferguson Sent: Thursday, February 12, 2009 12:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] 3D flip effect Hi, Im looking to rotate a canvas in 3d space. I know you can do this with gumbo but I wanted to see if you can do it with the 3.2 sdk. All the examples I have found rotate on a slider. Im looking to rotate during a transition. Thanks. ...russ This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
<<winmail.dat>>
This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.