Hey Ben,

Think I misread your post.  Please disregard my email if you are purely setting focus through code.

Mike

Mike Pearce
Nectarine  +61 3 9687 7820
www.nectarine.com.au

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Pearce
Sent: Tuesday, 24 May 2005 10:26 AM
To: Flash Developers List
Subject: [fugli] Re: Setting focus to a text field

 

Sounds like perhaps you are capturing key events in the authoring environment.

In test movie, go Control -> Disable Keyboard Shortcuts.

=) Mike

Mike Pearce
Nectarine  +61 3 9687 7820
www.nectarine.com.au

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Yee
Sent: Tuesday, 24 May 2005 9:37 AM
To: Flash Developers List
Subject: [fugli] Re: Setting focus to a text field

 

Cheers bill,

Yeah I was trying that, funny thing is it runs fine when run externally and not with the internal player???  WTF?

ben

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Lane
Sent: Tuesday, 24 May 2005 9:17 AM
To: Flash Developers List
Subject: [fugli] Re: Setting focus to a text field

 

Your sample should work if your textfield is set to input or dynamic.  But you'll only see a difference if there is text in the field.  If on the other hand you are using the textInput component you need to use the UIComponent.setFocus method.  It looks like:

 

componentInstance.setFocus();

With this method you will see the cursor in the field regardless of whether there is text in the field.

 

Bill Lane


>>> [EMAIL PROTECTED] 05/24/05 8:27 am >>>

Good morning peoples.

 

Now I’ve written this small app and everything is working sweet.  Now I thought I’d put the finishing touches on it by placing focus on the first text field.

 

Now I’ve googled and looked at the documentation and it looks simple. Eg Selection.setFocus(“myText_txt”); I can’t seem to get this to work.  Is there a trick to this?

 

Cheers

b 

 

---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ ---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to fugli as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to