Once the app is up and is “active” (focus is somewhere in the app), if you
click on something and generate a popup, you may need to wait via callLater to
set focus to a control in the popup.
On 3/17/10 7:31 AM, mitchgrrt mitch_g...@hotmail.com wrote:
I knew it was a problem on startup, when the JavaScript code has trouble giving
focus to a TextInput (typically on a login form) on the first Flex screen that
displays. This is a Mac problem I've read about elsewhere.
What I'm asking about is inside a Flex app, using PopupManager. Flex is
already running and it brings up a new form using PopupManager and wants to
give focus to a TextInput on the form. Thanks,
- Mitch
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
Nini7016 Nini7016 nahloulaha...@... wrote:
Thank you very very much Alex for your answers,,, You are very very genti :)
regards
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
From: aha...@...
Date: Tue, 16 Mar 2010 15:29:41 -0700
Subject: Re: [flexcoders] problem with TextInput.setFocus, PopupManager, and
Mac
Most browser will not give focus to Flash on startup.
On 3/16/10 12:14 PM, mitchgrrt mitch_g...@... wrote:
I have an application where I launch a dialog with PopupManager. I want to
set the focus on a TextInput when the form comes up. It works fine on the PC
but not on the Mac.
On the Mac it's strange. It looks like it works: there's a bright blue
border around the TextInput and there's a blinking caret inside. But when
actually typing some keys, the letters that are typed don't appear inside the
TextInput.
I've tried making a tiny MXML Application with a tiny popup, and this *does*
work. So it seems like it's something inside our large application that's
causing it to not work (on the Mac only). Any ideas how to fix it?
I've tried TextInput.setFocus(), FocusManager.showFocus(), and callLater()
using these. I also tried programmatically creating a MOUSE_DOWN event on
the TextInput.
Thanks.
--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui
__
Découvrez comment SURFER DISCRETEMENT sur un site de rencontres !
http://clk.atdmt.com/FRM/go/206608211/direct/01/
--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui