We Recommend

Essential ActionScript 3.0 Essential ActionScript 3.0
The book focuses on the core language and object-oriented programming, but also adds a deep look at the centerpiece of Flash Player's new API: display programming. Enjoy hundreds of brand new pages covering exciting new language features, such as the DOM-based event architecture, E4X, and namespaces--all brimming with real-world sample code.


Ballyhoo


Posted By

vcesjp on 05/01/08


Tagged

textmate actionscript as3


Versions (?)


dist


Published in: ActionScript 3 


  1. import flash.geom.Point;
  2.  
  3. private function dist( toX:Number, toY:Number, fromX:Number, fromY:Number ) : Number {
  4. return Point.distance( new Point( toX, toY ), new Point( fromX, fromY ) );
  5. }

Report this snippet 

You need to login to post a comment.