2 Replies Latest reply on Aug 25, 2006 11:55 AM by TigerLittle

    The problem about TitleWindow's parent

      This problem is confused me.

      I have main.mxml like this

      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" xmlns:v="views.*">
      <v:documentsView title="Documents" />

      And from the documentsView component create a popup Titlewindow.

      var itemWindow:IFlexDisplayObject = PopUpManager.createPopUp(this, myForm, true);

      I found this itemWindow’s parent is the main application window. But I need itemWindow display data and use some function from documentsView component.

      If I didn’t use custom component, I can do
      this.parentApplication.myData and this.parentApplication.myFunction.

      But now I have to use custom component. My question is since my itemWindow’s parent is main window. How can I get data and function from documentsView component?

      Thank you.