I missed out the () sorry.. I have it working somewhat how I want, when a form is hidden I set focusEnabled to false and set the default push button to null and the new form activates it enables itself as focusEnabled and sets its own default push button. This has stopped my hidden forms processing when someone hits the "enter" key so I'm part way there.
I guess what I'd like is a focus manager per form or set of controls instead of a global one. The issue I have right now is a have a "panel" with 2 forms on it and i can't get focus to jump from one form to the other even if I set the child property to true so the focus manager knows the panel has children. The interesting thing was none of the macromedia docs recommend how to get a focus manager instance and doing _level0.focusManager is not good programming practice for me. Grant ----- Original Message ----- From: Muzak [EMAIL PROTECTED] To: Flashcoders mailing list [email protected] Sent: 11/1/05 7:59 PM Subject: Re: [Flashcoders] Using the FocusManager > isn't getFocusManager a method? > > submitButton.getFocusManager().defaultPushButton = submitButton > > regards, > Muzak > > ----- Original Message ----- > From: > To: > Sent: Tuesday, November 01, 2005 11:37 PM > Subject: [Flashcoders] Using the FocusManager > > > >I appear to be in focus manager hell. > > > > I have an application with many "forms" each form is extended from movie > > clip and based on what menu option you have selected the > > form may or may not be visible. > > > > For example I have create user and update user, if you have selected create > > user, then update user is not visible. > > > > both of these forms have the default push button set to their own push > > button, however in testing I'm finding that if I hit the > > enter key when the create user form has focus, the button on the hidden > > update user form is being activated. > > > > The way I'm using focus manager right now is getting one by doing > > > > submitButton.getFocusManager.defaultPushButton = submitButton; > > > > Is there some other way I'm supposed to use the focus manager, it seems > > like there is one for the whole application instead of 1 > > per movie clip, or one per form. I tried attaching my own instance of the > > focus manager to each form but didn't see any good > > results. > > > > Macromedias docs on how to implement focus management in a sizeable > > application with multiple forms is pretty non existent. > > > > > > any help would be appreciated. > > > > Grant > > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

