A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: localToGlobal acting crazily

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    23

    localToGlobal acting crazily

    I have a movieclip called ghost. It's at (200, 250). Inside ghost is a point called ghostleft, which is positioned at (0, 50) within the ghost. And yet, when I do this:

    Code:
    	ghostL = {x:ghost.ghostleft.x, y:ghost.ghostleft.y};
    	ghost.localToGlobal(ghostL);
    ghostL.x comes out to be 214.1 (when it should be 200 + 0 = 200), and ghost.y comes out to be 240.25 (when it should be 250 + 50 = 300). Am I using localToGlobal wrong?
    Last edited by The_Hams; 03-15-2009 at 12:51 AM. Reason: Did math wrong ^_^;;

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center