| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Mar 2006
Posts: 3
|
I've got a problem with a TitleWindow not properly gaining focus at startup of the application...
I load up a TitleWindow as a PopUp. I then setFocus() on a text input box in that window. It highlights the input box in blue, but the focus is not really on it (can't type in it without manually selecting it). Then, if I hit tab to go to the next input box, it starts cycling through the items in my main canvas. I'm using: initialize="startUp();" On my main canvas to kick off my startup function. Below is the code I'm using to start up the window. Code:
var loginWin:Object;
function startUp() {
loginWin=TitleWindow(PopUpManager.createPopUp(mainCanvas, loginBox , true));
loginWin.mainApp = this;
loginWin.centerPopUp();
}
Any thoughts? |
|
|
|
|
|
#2 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
use creationComplete instead of initialize
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Mar 2006
Posts: 3
|
Yeah, I've tried that, didn't help any.
I've also tried using a good number of other things like validateNow, a number of different focus setting options I've seen suggested for other issues. I've tried callLater (not a great option, I know, but I've just been trying anything I can think of). I'm at a loss. I'm a bit of a newbie with ActionScript, and tend to manage purely due to the similarities between AS and Java. |
|
|
|
|
|
#4 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
post an mxml application that recreates this please
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| one template, many looks? | subquark | ActionScript 1.0 (and below) | 1161 | 09-03-2009 04:45 PM |
| Class focus issue... | FFighter | ActionScript 2.0 | 1 | 06-22-2005 06:06 PM |
| TextInput focus issue | etelford | ActionScript 2.0 | 1 | 03-05-2005 10:31 PM |
| Component Var/Method Focus Issue | FFighter | Components | 0 | 01-14-2005 01:40 AM |
| Button Focus Issue | Selfminded | ActionScript 2.0 | 11 | 12-09-2004 10:17 PM |