I am confused about my problem. I use flashcom and director to rotate
two models. hope the two models show same graphic in two broswer. The
two models are connect perpendicular models. when a user move mouse,
the two model rotate an angle related to x and y axis. after that I
detect axisAngle, pass it to the syn
function. In this function, I set the rotation angle to be axisangle
and hope everyone get the same graph in the scene. But the two models
disconnected and looks different. Here is my code:

on mousedown:
--rx and rx is the mouse location
scene.model("a").rotate(rx,ry,0, #world)
scene.model("b").rotate(rx,ry,0, #world)
--find the axisAngle
realangle= scene.model("a").transform.axisAngle
-- pass the value to the sharedobject
SharedObject.data.rotateXaxis = realangle[1][1]
SharedObject.data.rotateYaxis = realangle[1][2]
SharedObject.data.rotateZaxis = realangle[1][3]

on sync:
--set all models axisAngle to the same
scene.model("a").transform.axisAngle = [rotateAxis, RotateAngle]
scene.model("b").transform.axisAngle = [rotateAxis, RotateAngle]

I put the value of rotateAxis and RotateAngle on the scene using text
box. and find that although the value are the same but the two part of
the model disconnected. I did not do anything related to the
camera. I think I have made some silly mistakes and wonders if anyone
of you can point it out. By the way, I have try to rotate a camera and
group all objects. All
of the gives the same value but different scene.

Thanks for you helping

Mary
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[email protected]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to