>>Your teacher must be cringing! >> >>"The square of the hypotenuse equals the sum of the squares >>of the opposite two sides" should be familar.. ;-) >> >>Math.sqrt ( Math.pow(Math.abs(x1-x2),2 >>)+Math.pow(Math.abs(y1-y2),2 )+))
Why not skip the math lessons and use the Point class? var dist:Number = Point.distance(p1, p2); Jason Merrill Bank of America GT&O L&LD Solutions Design & Development eTools & Multimedia Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GT&O Innovative Learning Blog & subscribe. _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

