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 ); |
thank you !
Very nice; simple and effective. Thanks!!!
Very very useful. Thanks for share !!!
:)