fleeklee
07-28-2003, 04:11 PM
I'm not sure when it is approriate to delete objects. Many of the examples I've seen do not delete an XML object after its been created. I was under the impression you should have a corresponding "delete" for every "new".
If you have to delete the object then how would it be appropriately deleted in the following code?
xmlObject = new XML();
xmlObject.onLoad = function(success) {
if (success)
trace(this);
delete this; //???
}
Will this work? Can you delete an object as a direct result of an event handler?
Thanks,
Ken
If you have to delete the object then how would it be appropriately deleted in the following code?
xmlObject = new XML();
xmlObject.onLoad = function(success) {
if (success)
trace(this);
delete this; //???
}
Will this work? Can you delete an object as a direct result of an event handler?
Thanks,
Ken