Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-09-2009, 10:01 PM   PM User | #1
wonderblunder
New to the CF scene

 
Join Date: Jan 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
wonderblunder is an unknown quantity at this point
Setting a textfiled focus when movie is loaded?

Hello Everyone,

I would like to be able to set focus on a text field when movie is loaded. So lets say if I have two fields:

First Name
Last Name

I would like FirstName_txt to get the focus when movie is loaded so user just can type without having to mouse click first. I have tried setFocus() method but not getting anywhere. Any suggestion, how can I go about get this functionality going?

Thanks a lot.
wonderblunder is offline   Reply With Quote
Old 02-10-2009, 09:26 AM   PM User | #2
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
Well ok, first you would have to make sure the focus is set to the flash window, and then set the flash window focus to the text field.

http://www.artifactinteractive.com.au/dev/focus.html
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:01 AM.


Advertisement
Log in to turn off these ads.