i have a class A. it uses this code:
public function SideModule() {
if (stage) {
init();// stage accessible, call init function
} else {
addEventListener(Event.ADDED_TO_STAGE, init);// call init when stage accessible
}
}
private function init(e:Event = null):void {
if (e) {// called via event, remove it
removeEventListener(Event.ADDED_TO_STAGE, init);
}
addEventListener(Event.REMOVED_FROM_STAGE, removedFromStageHandler);
if i extends thsi class with class B (class B extends class A) how will i get this events in class B?
do i have to register for them in class B as well?