Groups | Blog | Home
all groups > flash (macromedia) > june 2006 >

flash (macromedia) : Mapping Tool/Distance Calculator


R80o
6/13/2006 8:39:30 PM
I've seen a Flash app before that allows you to click a start point on map,
then a line would follow the cursor until another point was clicked, then
another, and so on...Once the "end point" was established Flash would then
calculate and output the distance of the line based on the map's scale.

Has anyone else seen this, if so where?
Thanks in advance.
Mark
J_Greene
12/20/2006 8:45:32 PM
I am currently looking to build the exact same thing.

This is NOT working code just my rough thought process
onMouseDown save _xmouse + _ymouse
then onMouseUp save 2nd _xmouse + _ymouse
then I'd guess it would require an equation like ?(x1-x2)squared -
(y1-y2)squared = distance.

However you would need to account for the scale of the map.

Anybody else got a helping hand?

-John
AddThis Social Bookmark Button