/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import flash.geom.Point; private function dist( toX:Number, toY:Number, fromX:Number, fromY:Number ) : Number { return Point.distance( new Point( toX, toY ), new Point( fromX, fromY ) ); }