Re: [flexcoders] 3D flip effect
On Friday 13 Feb 2009, Russ Ferguson wrote: I am getting a type error 1009 cant access properties of null objects. And what is null ? Did you try setting the creation policy to all ? -- Tom Chiverton Helping to biannually synthesize e-business This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] 3D flip effect
I used this and it worked great: http://www.tink.ws/blog/papervision3d-effects-for-flex-source On Thu, Feb 12, 2009 at 8:23 PM, Ryan Graham ryan.gra...@phoenix.eduwrote: 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. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] 3D flip effect
Thanks for the info. I am getting a type error 1009 cant access properties of null objects. I don't think there are any classes I need to import but maybe im missing something? Thanks again. ...russ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Steve Mathews Sent: Friday, February 13, 2009 10:51 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] 3D flip effect I used this and it worked great: http://www.tink.ws/blog/papervision3d-effects-for-flex-source On Thu, Feb 12, 2009 at 8:23 PM, Ryan Graham ryan.gra...@phoenix.edu wrote: 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. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links http://groups.yahoo.com/group/flexcoders/ image001.jpgimage002.jpg
[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
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.
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.
RE: [flexcoders] 3D flip effect
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.datThis message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.