9 Replies Latest reply on May 1, 2009 9:59 AM by Flex harUI

    Using PopUpManager within Flex module

    c_thomas

      A module -- loaded into my Flex app -- needs to call a popup containing a component (climateControl) wrapped in a TitleWindow.  The code in the module is:

       

      import mx.managers.PopUpManager;

       

      private function showPopUp(title:String):void
                  {

       

                      win=climateControl(PopUpManager.createPopUp(this,climateControl,true));
                      win.title=title;
                  }

       

      ...and throws this error:


      "Error #1069: Property showPopUp not found on [appName] and there is no default value."

       

      Is there a way to open a popUp from a module?  Or am I taking a completely ill-advised path?