Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
Apache Flex 4.10.0
-
Gui framework
Description
It would be more safe and faster if it was possible to override the function UIComponent::removedFromStageHandler (and also, remove) instead to have to add and remove events listeners for those who extends UI classes.
Have to check if new proposed method name "removedFromStage" not used by any component, or choose another.
Example:
private function removedFromStageHandler(event:Event):void
// proposition: new function protected, dedicated to override
/** Override this allow to be called when this is removing from stage. Avoids to have to listen REMOVED_FROM_STAGE event. */
protected function removedFromStage():void {}