title: How to have Movie clip rotate at certain point of another Movie clip?
body: <p>Hey everyone so still going at this for a couple days now. Still can't figure out how to accomplish this...</p>
  
  <p>So I have a movie clip called <code>cannon</code> inside this movie clip I have an empty movie clip called <code>firePoint</code> now what I am trying to do is have a movie clip called <code>ball</code> shoot out of the empty movie clip point <code>firePoint</code>. The <code>cannon</code>is rotating and the cannons registration point is middle. I want the <code>ball</code> to rotate with the <code>cannon</code> at the cannons firePoint.</p>
  
  <p>Whenever I try to do this or even if I add the ball to the cannons firePoint the ball doesnt position near the cannon at all but rather on the top left hand screen. Also the ball doesnt rotate at the end of the cannon which is the firePoint. </p>
  
  <p>Here is what I have so far inside my constructor:</p>
  
  <pre><code>        cannon = new mcCannon();
          cannon.x = (stage.stageWidth / 2);
          cannon.y = (stage.stageHeight / 2);
          stage.addChild(cannon);
  
          globalFirePoint = localToGlobal(new Point(cannon.firePoint.x, cannon.firePoint.y));
  
          ball = new mcBall();
          stage.addChild(ball);
  
          stage.addEventListener(Event.ENTER_FRAME, logicHandler);
  </code></pre>
  
  <p>inside the ENTER_FRAME event is where I have the cannon rotating and I know in order to have my ball rotate with the cannon I need it to be in the ENTER_FRAME as well like so:</p>
  
  <pre><code>private function logicHandler(e:Event):void 
      {
          cannon.rotation ++;
  
          ball.x = globalFirePoint.x;
          ball.y = globalFirePoint.y;
      }
  </code></pre>
  
  <p>the above code doesn't do anything but spawn the ball at the wrong position and only rotate the cannon. I have tried so much and still fail. All I want is for the ball to position correctly and rotate with the cannon at the cannons <code>firePoint</code> so I can later have the ball shoot at different angles. </p>
  
  <p>Please any help would be appreciated! Thank you!</p>