Hi All,
I've read the discussion and wanted to add something. My problem is a
little different. I'm using flex for a Gmaps project. (Map fills whole
Browser Window) And I want to add some buttons to the bottom(from a
loader object) of the page. There's no problem for opening.
I'm able to use : stage.width, map.getSize or map.width.. Then I
wanted the button to stay at the bottom even the browser is resized so
added some code for resize action..

root.addEventListener(Event.RESIZE,resizeAGAIN);

function resizeAGAIN(){
                        ldrButton.x=map.width-10;
                        ldrButton.y=map.height-10;
                        trace(ldrButton.x);
                        trace(ldrButton.y);
                        trace("----");
                        trace(map.width);
                        trace(map.height);
                        }

But when I resize the browser window, the results are not stable.. If
I resize the window for little pixels (maybe less than 50, not sure
the exact number) the variety occurs less, but when I resize the
browser window more (greater pixels) the variety increases. I see
interesting results in console.. for examle in a big resize it gave me
a map height of 15px (but the window height is more than 100px) Before
this code I tried using map.getSize().x / y and stage.width / height
but no way..

Waiting for help :( Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to