Re: [Flashcoders] Drawing Points

2008-01-03 Thread Helmut Granda
good point Jason... I missed to mention that there is a layer with an actual map (a JPG that is as well loaded dynamically) so what i can do is use that file as a guide, draw the points where needed and again pass that information the XML. which in reality I can accomplish the same effect as when t

Re: [Flashcoders] Drawing Points

2008-01-03 Thread Andrew Sinning
___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] Drawing Points

2008-01-03 Thread Merrill, Jason
Yeah, but doesn't each element have X and Y positions on the XML? If not, they must have just drawn the whole thing at once and did not have X and Y positions for elements? Or they did not put each element in a sprite or movie clip? If that's the case, then I don't see how you're going to distingu

Re: [Flashcoders] Drawing Points

2008-01-03 Thread Helmut Granda
Precisely, when I look at the file I was going to work on my first instinct was to look for the moviclips on the stage where they were created, but when I took a closer look to the file I figured out that all the elements were drawn with the drawing API using coordinates from an external XML. That

Re: [Flashcoders] Drawing Points

2008-01-03 Thread Helmut Granda
The file contains a map that has to be switched for a new map so the coordinates cant be re-used. at least all the elements of the map have to be re-drawn. The code can be reused but not the coordinates but thanks for the idea.. On 1/3/08, Andrew Sinning <[EMAIL PROTECTED]> wrote: > > Does the xml

RE: [Flashcoders] Drawing Points

2008-01-03 Thread Merrill, Jason
I don't quite follow - why would you try to draw new points to know where they are? Can't you get the X and Y coordinates of the graphics already on the screen? Jason Merrill Bank of America GT&O L&LD Solutions Design & Development eTools & Multimedia Bank of America Flash Platform Developer

Re: [Flashcoders] Drawing Points

2008-01-03 Thread Andrew Sinning
Does the xml data contain coordinates? If so, can't you just scale and offset the coordinates to your stage? E.g. Treat latitude as Y and longitude as X, offset to the upper-left coordinates of your map, and then scale to pixels using a multiplier. Something like that. Helmut Granda wrote: