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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing <http://groups.yahoo.com/gads? t=ms&k=Computer+software+testing&w1=Comput er+software+testing&w2=Macromedia+flex&w3=Development&w4=Software+dev elo per&c=4&s=93&.sig=kh2CguJwmatU5oBXjFo9Rg> Macromedia flex <http://groups.yahoo.com/gads? t=ms&k=Macromedia+flex&w1=Computer+softwar e+testing&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4 &s= 93&.sig=dAUcEV7do91-wrRtVS641g> Development <http://groups.yahoo.com/gads? t=ms&k=Development&w1=Computer+software+te sting&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4&s=9 3&. sig=AlxNUQBOI7Io7S7nhmxV0Q> Software developer <http://groups.yahoo.com/gads? t=ms&k=Software+developer&w1=Computer+soft ware+testing&w2=Macromedia+flex&w3=Development&w4=Software+developer& c=4 &s=93&.sig=QWIit8JayomoIHLVkV3FDg> _____ YAHOO! GROUPS LINKS * Visit your group "flexcoders <http://groups.yahoo.com/group/flexcoders> " on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . _____ --- End forwarded message --- -- 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 ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h539ld9/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123791641/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</a>.</font> --------------------------------------------------------------------~-> -- 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/