hi all,
how to delete objecthandal selected object.
i try to this code but select object not properly deleted & show every time
his id.
var theSelected:ObjectHandles = SelectionManager.instance.currentlySelected
as ObjectHandles;
var parentContainer:DisplayObjectContainer;
if(selectedObject != null)
{
var txt1:TextArea = selectedObject.getChildAt(0) as TextArea;
if(txt1 != null)
{
myRemote.deleteFrontData(sessionid,txt1.id);
}
if( theSelected != null && theSelected.parent != null ) {
SelectionManager.instance.selectNone(); // Cosmetical
stuff, just deselect.
parentContainer = theSelected.parent; // Get the
parent container
parentContainer.removeChild( theSelected ); // Remove the
selected OH
}
}