2 Replies Latest reply on Feb 2, 2010 9:48 AM by Gregory Lafrance

    access parent windows parameters from a pop-up window

    Alex-SM

      Hi,

       

      I would like to know how to access parent windows parameters from a pop-up window.

       

      parent window:  (main.mxml)


      mypopup_screen = new mypopup();

      ...

             <mx:DataGrid id="mydata" dataProvider=??? width="100%" height="100%">
                <mx:columns>
                    <mx:DataGridColumn headerText="ID" dataField="id" width="6"/>
                    ....
                  </mx:columns>
              </mx:DataGrid>

       

       

      Now in popup window I need to access:

       

      popup window  (mypopup.mxml)

       

      Alert.show(String(mydata.selectedItem.id));

       

      Thanks,

      AS