#1 (permalink)  
Old 11-06-08, 07:14
Junior Member
Settled In
 
Join Date: Jun 2008
Posts: 1
Rep Power: 0
venkatesh is on a distinguished road
Set focus to TextField

Hi Flep,
I have an issue with the stage.focus !

Actually, I am developing a site with flex 3 and java ROs. And I have login page, when the page loads Iam trying to set the focus to the username textfield.

txtUserName.setFocus();

but this does not put the cursor in the txtUserName.

I read in some forums to use stage.focus = txtUserName.

and it does not work ! can you please help

Thanks
-Venky

Quote:
Originally Posted by Flep View Post
Set focus to TextField
Let's say we have 2 TextFields: one_txt and two_txt.

If you want to give focus at one_txt:

Code:
stage.focus=one_txt;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
sponsor links
Flashmint flash templates FlippingBook-PDF publisher Flash Media Server Hosting
  #2 (permalink)  
Old 14-06-08, 09:53
Administrator
Living At The FlepStudio!
 
Join Date: Jul 2007
Location: Cesenatico
Posts: 4,917
Rep Power: 6
Flep is on a distinguished road
Re: Set focus to TextField

Hi,
did you try this:

FLEX{er} » Blog Archive » How To Set Focus on UIComponent
__________________
_________________________________________
VIDEO CORSI ACTIONSCRIPT 3.0 creati da FlepStudio
I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread please !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
sponsor links
Reply

Bookmarks

Tags
focus, set, textfield

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Actionscript 3 problemi con componente TextField interrupt Actionscript 3.0 avanzato 0 12-09-08 11:30
Problema con textfield neeohak Actionscript 3.0 avanzato 4 05-06-08 18:07
Focus su testo di input CrowSix Flash Italiano 1 04-06-08 06:54
TAB ordine e focus su componenti sullo stage rtrimarchi Actionscript 3.0 base 5 23-11-07 17:28
textfield & c.. nootropic.kint Flash Italiano 1 14-11-07 17:39



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Skin developed by: vBStyles.com
FlepStudio 2007-2009