Don't forget that the browser doesn't give focus to Flash until you click on 
the app.

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Brandon 
Krakowsky
Sent: Thursday, September 18, 2008 6:52 PM
To: [email protected]
Subject: Re: [flexcoders] Placing cursor inside UITextField

George, thanks, I'll have to test that.  The parent component is certainly 
initialized.  The UITextFields are triggered by user interaction.  You mean I 
have to test to see if the UITextField itself has initialized?

Thanks,
Brandon

----- Original Message ----
From: George <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, September 18, 2008 6:44:49 PM
Subject: Re: [flexcoders] Placing cursor inside UITextField

Usually I will begin to run set focus after component already
initialized. If you try to get focus before that time, wouldn't work for
sure.

George

Brandon Krakowsky wrote:
> I'm creating some Input UITextField instances dynamically, and then
> trying to place the cursor inside. Can't seem to get it working.
>
> var textField:UITextFie ld = new UITextField( );
> textField.type = "input";
> textField.autoSize = TextFieldAutoSize. LEFT;
> textField.multiline = true;
> textField.wordWrap = false;
> textField.border = false;
>
> stage.focus = textField;
>
> It seems to get the focus, but doesn't put the cursor inside. Can't
> just start typing. Also, textField.setFocus( ) doesn't work.
>
> Thanks,
> Brandon


Reply via email to