Your application has to get focus before this will work. 

Regards, 

-Keith 
http://keithreinfeld.home.comcast.net
<http://keithreinfeld.home.comcast.net/> 
 

  _____  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tchredeemed
Sent: Wednesday, October 29, 2008 9:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] textArea.setFocus();

 

When I launch my application, if I do this:

textArea.selectionBeginIndex=10;
textArea.selectionEndIndex=20;
textArea.setFocus();

Should it not put the cursor into the textArea and have the 10th
through 20th characters selected?

So that by default, if I put that in creationComplete, and they just
start typing when the app loads, it starts to replace the 10th through
20th characters with what they type?

As of right now, I do not see a cursor when I run.

Any ideas?!

 

Reply via email to