6 Replies Latest reply on Dec 29, 2006 11:36 AM by FlightGuy

    Referencing a custom component file as a parameter in PopUpManager.createPopUp()

    ZeKid
      Hello !

      I'm trying to open a custom mxml file in a popUp window. The custom TitleWindow component (myPopUpComponent.mxml) is located in a folder "view" which is located aside my main file.
      When I try to compile the following line (in the main file),

      var myPopup:TitleWindow = TitleWindow ( PopUpManager.createPopUp ( this, view.myPopUpComponent, true ));

      ... I got the error: "1120: Access of undefined property view."

      This use to work with Flex 1.5. What's the new way of pointing to a file in your directory structure ?
      Of course, everything works fine if I put the component directly beside the main file and use this instead:

      var myPopup:TitleWindow = TitleWindow ( PopUpManager.createPopUp ( this, myPopUpComponent, true ));

      But I should be allowed to have some sort of folder hierarchy in my project ....
      Is someone have come across something similar ?