Return to Snippet

Revision: 44144
at April 7, 2011 01:54 by scottwatkins

Initial Code
 * _deleteObject function
 * Removes the specified object from the parent object and nulls the object.
 * @param obj:Object The specific object to remove
private function _deleteObject(obj:Object):void
    if (obj.parent)
    obj = null;

Initial URL

Initial Description
This function will delete and object and mark it for deletion with gc.

Initial Title
ActionScript 3 Delete an Object Function

Initial Tags
object, actionscript

Initial Language
ActionScript 3