Hi Pamela, sorry for the misplaced post.

My question was about managing the focus without expecting the user
click on the map.

doing this:

var fm:FocusManager;
fm=new FocusManager(this); // or (map)
fm.setFocus(map);

 the map is focused but doesn't respond to keyboard until you press
arrow up key to give focus to the focusable Component inside map. I
thought the reason was to allow  tabbing through the buttons of the
controls, but it seems it's not.

doing this:

var focusedMapObj;
fm=new FocusManager(map);
focusedMapObj=fm.getNextFocusManagerComponent();
fm.setFocus(focusedMapObj);

the map responds immediatly. This way I can set a listener with an
FocusEvent.FOCUS_IN or FOCUS_OUT to give the focus back to the
focusedMapObj if I need.

The object who receive the focus in the map is inside mapmc, and it's
the only unammed one [tilesmc, instance_xx,overlaysmc] , so the
getNextFocusManagerComponent need. any thought about this?

Sorry for my poor english and thank again for your work.


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