12 Replies Latest reply on May 22, 2008 2:30 AM by Davide_C

    calling a popup by passing his name to a function

      Hi! I'm new to Flex.

      I have created with Flex 2 popups (which are TitleWindows):

      popup1.mxml and popup2.mxml

      Is there a way to write a function like this:

      PHP Code:
      public function openPopup(myPopup:String){

      //here the code to take the string myPopup (which can be popup1 or popup2) and create the popup...
      ??? I really don't know how to do this

      PopupManager.createPopup (this, ???, true);


      Thanks in advance.