Good idea.  I'll check that out.  It's strange that this is so tricky to do.  I 
can use a TextInput and use textInput.setFocus() right after creation with no 
problem, but that doesn't suit my needs.

Thanks,
Brandon



----- Original Message ----
From: Sherif Abdou <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, September 18, 2008 9:56:51 PM
Subject: Re: [flexcoders] Placing cursor inside UITextField


This is untested and I havent tried it, I am 
guessing somewhere you can dispatch a Fake mouseDown/Click event on the 
UITextField which theortically should place a cursor.
------
Sherif Abdou
http://VadexFX. com
http://Sherifabdou. com
----- Original Message ----- 
From: Brandon  Krakowsky 
To: [EMAIL PROTECTED] ups.com 
Sent: Thursday, September 18, 2008 8:51  PM
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] com>
To: [EMAIL PROTECTED] ups.com
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