title: AS3 - Finding an objects x and y position relative to the stage
body: <p>I'm new to ActionScript 3 and I have a character which you can control, the screen scrolls right along the stage and he can fire missiles.
  The problem I'm getting is the missiles are created via these co-ords:</p>
  
  <pre><code>        bullet.x = hero.mc.x;
          bullet.y = hero.mc.y
  </code></pre>
  
  <p>These work fine untill the screen has scrolled to the right. I assume it's because the bullets are being spawned as a result of them using the canvas x,y and not the stages x,y
  So i'm wondering how to find out the x and y of my hero in relative to the canvas so i can spawn the missiles on top of him!</p>
  
  <p>Thanks, and if you need any more information let me know, I'm new to all this. Thank you.</p>