Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-24-2006, 05:26 PM   #1
xithor
Registered User
 
Join Date: Mar 2006
Posts: 3
Default TitleWindow focus issue.

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();
}
When I use the exact same code later on while running the app, it works fine. It's only on startup. I'm guessing it's related to the application not being fully initialized, but I can't find a way around that.

Any thoughts?
xithor is offline   Reply With Quote
Old 03-24-2006, 07:26 PM   #2
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

use creationComplete instead of initialize
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 03-24-2006, 09:25 PM   #3
xithor
Registered User
 
Join Date: Mar 2006
Posts: 3
Default

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.
xithor is offline   Reply With Quote
Old 03-24-2006, 09:47 PM   #4
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

post an mxml application that recreates this please
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Reply


Thread Tools
Display Modes 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

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


All times are GMT. The time now is 10:34 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.