Hi,
I am trying to do a basic 3d rotation of a Flex UIComponent (using Flex 3.2)
and I can't
make it rotate around its center. I checked out some of Flex 4's classes, on
how they
accomplished the FxRotate3D effect which is centered, but it's too complex to
just extract
out the parts I need (and the effect is very bug prone anyway).
How do you set the UIComponent to have a center registration point if you are
using 3D
effects? I've tried using the basic Matrix class, as there are some examples
of centering
registration points in 2D, but they don't work here. I have done the following
so far and
have achieved at least a 3d rotation, but I can't control where it is (I don't
know much
about matrices).
myView.addEventListener(Event.ENTER_FRAME, tick);
private function tick(event:Event):void {
myView.transform.matrix3D.appendRotation(1, Vector3D.Y_AXIS)
}
I would like to be able to just have the object rotate like you would see in
papervision
using the camera, but I don't know where to start.
Thanks for your help.
Lance