That was far too easy…

 

 

/******************************************
* Jeff Beeman
******************************************/


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Horn
Sent: Tuesday, May 17, 2005 12:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] TitleWindow show event

 

Works like a charm:

 

<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.macromedia.com/2003/mxml"
    closeButton="true" width="200" click="this.deletePopUp();" creationComplete="setMyFocus()">
  <mx:Script>
   function setMyFocus() {
    form1.setFocus();
   }
  </mx:Script>
  
 <mx:TextInput id="form1" text="Your Name" />

 

</mx:TitleWindow>

 

 

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt
Sent: Tuesday, May 17, 2005 3:48 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] TitleWindow show event

I'd use creationComplete of the TitleWindow instead.
Tracy

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeff Beeman
Sent: Tuesday, May 17, 2005 2:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TitleWindow show event

I've got a TitleWindow popup that appears when a button is clicked.
When the window appears, I want to set focus on a TextInput component
that is in the TitleWindow.  I assume that the event I'm looking for is
"show" - but it doesn't seem to be broadcasting that event when the
TitleWindow is popped up.  Does anyone have advice or examples of events
being used with TitleWindow popups?


/******************************************
* Jeff Beeman
******************************************/




Yahoo! Groups Links











Yahoo! Groups Links

Reply via email to