Congrats, Turker.

I am also a Flex developer. I think you should have a more formal way to
handle the Browser resize, rather than this.

When using Flex, you should put aside 'root' and 'stage' and focus on
'Application'. The simplest way is to set  application.layout = 'vertical',
in that Application will rearrange your map and button for you. You can
forget the size of Browser and coordination of Button.

If you want to use absolute positioning in Application, set
application.layout = 'absolute', and position your button according to
application size by listening to application's resize event.

Hope that help.

Juguang

On Tue, Jul 14, 2009 at 4:34 PM, Turker <[email protected]> wrote:

>
> Found the solution..
> - We have problems with stage width -height
> - Also we have problems with map width - height
>
> But we have no problem with "Browser window sizes" So I tried to
> communicate with Javascript by using ExternalInterface.call method..
> And bingo!
> After adding this code to html :
> <script>
> function getHeight(){
> return document.body.clientHeight;
> }
> function getWidth(){
> return document.body.clientWidth;
> }
> </script>
>
> and this to actionscript :
>
> function resizeAGAIN(){
>                        ldrButton.x=ExternalInterface.call
> ("getWidth")-10;
>                        ldrButton.y=ExternalInterface.call
> ("getHeight")-10;
>                        }
> This worked! But map.height-widht issue must be inspected or explained
> by Google ;)
> Thanks
>
> :Türker
>
>
>
>
>
>
> >
>


-- 
=============
Juguang XIAO
Beijing, China

--~--~---------~--~----~------------~-------~--~----~
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