Hi
I'm trying to detect the latitude and longitude of the cursor as the
user moves their mouse around a map. Should be straightforward I
thought - if I use LatLonRect data and then calculate based on
_xmouse and _ymouse data and the height and width of the movieClip
containing the map, I should be able to do this right?
Weird problem is that flash reports the _height and _width of the
movieclip incorrectly.
I have a movieClip "mapTable_mc" in which there is a map named "map"
The actual dimensions of the movieClip (and also the map) are 400 X
300 pixels.
trace(mapTable_mc._height)
…output is 1280
trace(mapTable_mc._width)
…output is 1280
Trace mapTable_mc.map._height
…output is 1280
Trace mapTable_mc.map._width
…output is 1280
Height and width are not only incorrect but also the same as each other!
If I trace _xmouse and _ymouse values, they are exacly as expected.
Can anyone shed any light?
David
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com