Just a thank you-- Peter's solution solved my problem (I had the same
problem as Kim). =)

--- In flexcoders@yahoogroups.com, "Peter Watson" <[EMAIL PROTECTED]> wrote:
> Try using something like this in the script block of the popup.mxml
> 
>       import mx.managers.SystemManager;
>       var myPop;
> 
>         function createPop(){
>               myPop = mx.managers.PopUpManager.createPopUp(this, Pop1, true);
>             doLater(this, "fixfocus");
>         }
> 
>         function fixfocus(){
>               SystemManager.activate(myPop);
>         }
> 
> - peter
> 
> -----Original Message-----
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of kreddington1
> Sent: Thursday, August 11, 2005 1:34 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Changing a modal popup to non-modal
> 
> Unfortunately, I am already using "this".  Here is a copy of the 
> code:
> 
> var addressPop:TitleWindow = TitleWindow(PopUpManager.createPopUp
> (this, newAddress, true, initObj));
> 
> What happens is this:
> The first window popsup, the user clicks on a link which pulls up a 
> second window.  The user can enter data in this second window and 
> have it returned to the first window.  This all works fine.  The 
> only problem I have is the tabbing.  When the user presses the tab 
> while the second window is up, the focus returns to the first 
> window, even though the second window is on top and is modal.
> 
> Does anyone have any other ideas?
>                       
> 
> --- In flexcoders@yahoogroups.com, "Mercer, Dustin" 
> <[EMAIL PROTECTED]> wrote:
> Kim,
> 
>  
> 
> Just curious, when you are creating the popup, what are you using as 
> the
> first param to the createPopUp method?  This is what defines the 
> parent
> of the window being created.  If you are passing application or 
> _root,
> you may run into some of these focusing issues.  Try passing "this" 
> as
> the first parameter to the createPopUp method (this being the first
> TitleWindow).  I.E.  createPopUp( this, MyPopUpWindow.mxml, true ).  
> I
> am not sure if that is the exact syntax, but this should give you 
> enough
> of an idea.  
> 
>  
> 
> What this does is actually make the second TitleWindow a Modal 
> window of
> the first TitleWindow, not a second modal window to the 
> application.  I
> have also had this problem before and that seem to fix me.
> 
>  
> 
>   _____  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> On
> Behalf Of Kim Reddington
> Sent: Wednesday, August 10, 2005 7:58 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Changing a modal popup to non-modal
> 
>  
> 
> I have a TitleWindow that pops up a second TitleWindow.  Both are 
> modal.
> I want the user to be able to tab through the fields in the second
> window. The tab works fine, if the 1st window is non-modal, but if 
> the
> first window is modal, then the tab brings the user back to the first
> window instead of staying in the second window.
> 
>  
> 
> Is there a way to get the tabs to work properly while still keeping 
> both
> windows modal?
> 
>  
> 
> If not, then is there a way to make the first window NON-modal before
> popping up the second window
> 
>  
> 
> for example,
> 
>  
> 
> function openSecondPopUp() {
> 
>     this.modal = false;               //obviously I made up this code
> and am looking for the real code to put here
> 
>     var secondPopUp = .....
> 
> }
> 
>  
> 
>  
> 
> Thank you for your help,
> 
> Kim
> 
> _________________________________
> Kim Reddington
> Principal Consultant/Developer
> Deluxe Technologies
> http://www.deluxetechnologies.com 
> <http://www.deluxetechnologies.com/> 
> 508-231-8744




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to