Hi,
I have a class which work with data and I want to do something after its constructor function is finished.
If a class is a MovieClip, I can do this:
public function constructor() {
addEventListener(Event.ADDED_TO_STAGE,init);
}
private function init(event:Event):void {
// do something, providing that the class instance already exists
}
but in my case this class in not a movie clip, it’s just data, and it’s not added to the stage, so is there any other event which triggers after constructor function finishes creating the instance?