# Any event after object creation?

**URL:** <https://forum.kirupa.com/t/any-event-after-object-creation/310451>\
**Category:** Uncategorized\
**Created:** [June 10, 2010, 1:17pm UTC](https://forum.kirupa.com/t/any-event-after-object-creation/310451 "2010-06-10T13:17:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tempo](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@tempo](https://forum.kirupa.com/u/tempo)\
**Post date:** [June 10, 2010, 1:17pm UTC](https://forum.kirupa.com/t/any-event-after-object-creation/310451/1 "2010-06-10T13:17:01Z")

</div>

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:

```auto
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?
