Trying to destroy object of event-target via Event object

Hey ho,

I’m using an Event.COMPLETE dispatch to get notice that a particular object has finished doing its business and can therefore be destroyed, but the target of the event (the object I want to destroy) is read-only via the Event object…anyway around this?

i.e: I’m trying to do this:


private function _onComplete(e:Event)
{
    // destroy object //
    e.target.removeEventListener(Event.COMPLETE, _onComplete);
    e.target = null;
}

…but of course, I get a compiler error: 1059: Property is read-only.

Any idears? Thanks!