I think you need to use Application.application.popupWindow instead of just popupWindow.

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
Sent: Monday, April 25, 2005 10:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Call one popup from another popup

 


I am sure this problem is easy but for some reason I cannot figure
it out.  Maybe too many hours of writing code.  I have a mxml file
that calls a popup TitleWindow.  What I am trying to do is to have
that popup window call another popup window.  Listed below is a
piece of my code.  This code below is the code for the first popup
window.  Then I want to call another popup window from this popup
window.  When I try this code below I get an error that says "There
is no method with the name 'popupWindow'"

<?xml version="1.0"?>

   <mx:VBox
        alpha="95"
      xmlns:mx="http://www.macromedia.com/2003/mxml"
        initialize="initLogin()"
      creationCompleteEffect="moveLogin"
      load="initValues()"
      hideEffect="moveLoginOffScreen" >           
           
        <mx:Script>
              <![CDATA[
            import mx.containers.TitleWindow;
            import mx.core.Application;
            import mx.controls.Alert;     
                                               
            var authenticationPassed;
            var login: RegistrationFormVO;
                       
      function showRegister(){
      var pop2:TitleWindow = TitleWindow(popupWindow(RegisterBody,
{title:'StudentFuel Registration', width:650, height:450,
closeButton:false,x:200,y:400}));     
                        }     
Does anyone have any ideas how to accomplish this?

Thanks,

COREY     






Yahoo! Groups Links

Reply via email to