2 Replies Latest reply on Nov 6, 2008 1:07 PM by wkolcz

    How to load without an creationComplete

    wkolcz
      I have a number of pop up windows that take passed ID's to grab information and display it. I am doing it through and initApp() in the creationComplete. However I notices that if you spawn another one, the initApp doesn't load since the component is already loaded into the system.

      Is there another place to put a initApp function that will reload the info each time the component TitleWindow is loaded or a event that dies when the window closes using PopUpManager.removePopUp(this)
        • 1. Re: How to load without an creationComplete
          bholli
          projectproofing,

          I'm not sure if I understand you correctly, but you can call the initApp function anytime, and not just after the creationComplete event of your application. For example, you can call that function on the "creationComplete" event of your TitleWindow, on the "addedToStage" event of your TitleWindow, and on any other event for any component of your Flex Application.
          • 2. Re: How to load without an creationComplete
            wkolcz Level 1
            Ahh, something like:

            private function openToDoDetails(TDID:int):void {
            todoDetailWindow.TDID = TDID;
            todoDetailWindow.initApp();
            PopUpManager.addPopUp(todoDetailWindow, this, true);
            PopUpManager.centerPopUp(todoDetailWindow);
            }

            That worked. Thanks.