/ Published in: ActionScript 3
Expand |
Embed | Plain Text
// parent object = 'holder' // child object = 'mc' // trace (1) - coords of child relative to 0,0 of the parent ('holder') // trace (2) - coords of child relative to 0,0 of main stage trace("Local Kid coords : " + (new Point(holder.mc.x, holder.mc.y))); trace("Global Kid coords : " + holder.localToGlobal(new Point(holder.mc.x, holder.mc.y)));
You need to login to post a comment.
