Jason MacDonald
|
|
« Reply #1 on: July 23, 2009, 08:00:16 » |
|
Remove the mediator first, then in the mediators onRemove() function remove the view component.
example
override public function onRemove():void { viewComponent.parent.removeChild(viewComponent); // OR send a note to the parent objects mediator to remove sendNotification(REMOVE_CHILD, viewComponent); }
You can also remove any relevant event listeners there as well.
|