0 Replies Latest reply on May 28, 2006 10:13 AM by Newsgroup_User

    getting absolute coordinates of a clip attached to another moving clip

    Level 7
      If I have a clip "watch_arm"consisting of a line segment with another clip
      "ball" attached at one end of the line
      watch_arm.attachMovie("ball","ball", depth);
      watch_arm.ball._x =length_of_the_line;
      watch_arm is rotating around its other end incrementing _rotation property

      How do I get absolute coordinate of the ball?
      I tried localToGlobal:
      watch_arm.globalToLocal(ball); trace(watch_arm.ball._x) on Enterframe, but
      it returned a constant value.
      Perhaps I am using globalToLocal wrongly?