fu-meng
01-31-2005, 08:35 PM
hi.
i've got a datagrid component that i'm having difficulty targeting. i have a button onstage and onclick it creates a pop up window like this:
showWindow( "myMovie", "contents_mc", 400, 250, stage.width/2, stage.height/2 );
and here's my showWindow function:
function showWindow( title, contents, width, height, x, y )
{
// create the Pop Up
_global.windowMgr = PopUpManager.createPopUp( _root, Window, true,
closeButton: true, title: title, contentPath: contents } );
}
the problem is that i just don't know how to target my dataGrid component. i've tried:
windowMg.contents_mc.myDataGrid
but it doesn't work.
any helpful tips are appreciated.
thanks.
fumeng.
i've got a datagrid component that i'm having difficulty targeting. i have a button onstage and onclick it creates a pop up window like this:
showWindow( "myMovie", "contents_mc", 400, 250, stage.width/2, stage.height/2 );
and here's my showWindow function:
function showWindow( title, contents, width, height, x, y )
{
// create the Pop Up
_global.windowMgr = PopUpManager.createPopUp( _root, Window, true,
closeButton: true, title: title, contentPath: contents } );
}
the problem is that i just don't know how to target my dataGrid component. i've tried:
windowMg.contents_mc.myDataGrid
but it doesn't work.
any helpful tips are appreciated.
thanks.
fumeng.