Maybe I miss something and my wish of a focus manager fully implemented is silly. In that case any comments will be appreciated. Actually the map grab the focus on mouseDown, so if you need to use arrow keys in a textfield you have to disable the keyboard control or set the focus out of "focusedMapObj" via a FocusManager (my previous message). If the WrappableComponent Class implements the IFocusManagerComponent Class ( http://help.adobe.com/en_US/AS3LCR/Flash_10.0/fl/managers/IFocusManagerComponent.html ) it will be possible to fully control the focus of the map (focusEnabled, mouseFocusEnabled, setFocus, drawFocus...) I think, it will be usefull.
On Mar 31, 2:55 pm, jacques <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
