troubleshooting Question

What event should I listen for to set focus to a component when a window first displays?

Avatar of blueshoes
blueshoes asked on
Adobe FlashApache Flex
5 Comments1 Solution663 ViewsLast Modified:
I implement a dialog window by using the PopUpManager to pop up a TitleWindow. After the window is popped up I want to set the focus to a specific control, and I have been putting the code for that in a method that handles the updateComplete event (and then removing that listener so that it will not intercept subsequent firing of that event). That worked well until a put a PopUpButton on the dialog that that pops up a tree control. Since then, the updateComplete event does not fire so that setting the focus in that event handler no longer executes.

Anybody know why the updateComplete event would not fire? Is there a better event to listen to for setting the initial focus?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros