3 CommentsApril 7 | 2009

Short little snippet I found the other day to convert coordinates from one movieclip to another in Actionscript 3

1
2
3
4
5
6
function localToLocal(fr:MovieClip, to:MovieClip):Point {
    return to.globalToLocal(fr.localToGlobal(new Point()));
};

//Useage
var localPoint:Point = localToLocal(fromMc,toMc);
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • email
  • Ma.gnolia
  • Tumblr
  • TwitThis
  • StumbleUpon