What you need is something called Translation. I am leaving the office so I can't work out the problem for you, but basically pick a point on the map and call it 0,0 and then the lat and long of that same point will represent 0,0 and all you have to do is subtract or add the lat and long of the point on the map from the coordinates of what you are calling 0,0.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Lehr, Theodore Sent: Friday, September 10, 2010 10:37 AM To: Flash Coders List Subject: RE: [Flashcoders] Math help Hhmmm I do not think this is working - here is my issue - maybe someone has an idea. I have a mc that is basically a map of the US. I am getting the long and lat of a location.... I want to be able to put a point on the map based on that long and lat - my thought was that I could find an equivalent x,y coord based on the long and lat but it does not seem to be translating well... any thoughts? ________________________________________ From: [email protected] [[email protected]] On Behalf Of Merrill, Jason [[email protected]] Sent: Friday, September 10, 2010 7:58 AM To: Flash Coders List Subject: RE: [Flashcoders] Math help I assume you mean those numbers represent X values, and I assume by "equivalent" you mean the same percentage along the line (since those lines are of two different lengths). Then all you have to do is some simple proportional math. Get the length of each line by subtracting the start point from the end point (i.e. for line b, 124.4 - 66.92). Divide the point you have on B (80.6) from the length of B to get the percentage that point is along line B. Use that number as a proportion to figure the same point on line A. To do that, multiply that proportion number you got from line B by the length of line A. That will give you equivalent proportion on line A. Add that proportion number to the start point of line A (in this case, the start point of A is 0, so doesn't matter) to get the actual point on line A. Jason Merrill Instructional Technology Architect Bank of America Global Learning Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (Note: these resources are only available for Bank of America associates) -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Lehr, Theodore Sent: Friday, September 10, 2010 7:24 AM To: Flash Coders List Subject: [Flashcoders] Math help So if I have to line segments: A: 0-799 B: 66.92 - 124.40 Given a point on B (80.6 for example) how can I find the equivalent point on A? _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

