Re: [Flashcoders] Yahoo Maps: Detecting latitude and longitude of mouse over map

2006-07-20 Thread Dave Wood
Hi David When flash calculates _width and _height, it also includes things inside the movieclip which may be invisible, or masked out. Good thought, but no, the movieclip contains nothing beyond the area covered by the map instance. Note that it wsan't just the clip containing the map the

Re: [Flashcoders] Yahoo Maps: Detecting latitude and longitude of mouse over map

2006-07-20 Thread David Rorex
When flash calculates _width and _height, it also includes things inside the movieclip which may be invisible, or masked out. Try this simple example: On the stage, create an empty movie clip A which contains two square movieclips B and C, which are placed next to each other This code will produc

Re: [Flashcoders] Yahoo Maps: Detecting latitude and longitude of mouse over map

2006-07-20 Thread Dave Wood
The actual dimensions of the movieClip (and also the map) are 400 X 300 pixels. Sorry, that was a typo - they are actually 500 X 400 pixels. David ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http:/

[Flashcoders] Yahoo Maps: Detecting latitude and longitude of mouse over map

2006-07-20 Thread Dave Wood
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