in Actionscript 3.0 Ive created a datagrid that populated with data. I want to create a pop up window to confirm whether the removal of an entry. When I call from the child object the following, I get an object undefined error. Is there anyone that can help me? I know its doing that because the datagrid object is not defined within the child but I thought using the this.parent.parent would help me solve that.
Also, I have another inquiry, the items I have on the datagrid are flv files loaded from an shared object file using a media server. FSO/RSO, that doesn't matter, but when I remove items using the following code the items reappear on the grid when i restart my application. Initially i thought it was because of the physical files themselves not being removed but that would not make sense and doing some research I found it could be to do with a command called delstream however I can't find sufficient information to help me in using it in my code.
-
-
no_btn.addEventListener(MouseEvent.CLICK, closeWindow);
-
-
function closeWindow(event:MouseEvent):void
-
{
-
this.parent.parent.removeChild(this.parent);
-
}
-
-
-
yes_btn.addEventListener(MouseEvent.CLICK, remove);
-
-
function remove()
-
{
-
-
this.parent.parent.myDataGrid.dataProvider.removeItemAt(myDataGrid. selectedIndex)(this.parent);
-
}
-
-
-
-
-