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:UITextField = 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