# onClipEvent(load) and AS3.0

**URL:** https://forum.kirupa.com/t/onclipevent-load-and-as3-0/244629
**Category:** flash
**Created:** [November 20, 2007, 12:53pm UTC](https://forum.kirupa.com/t/onclipevent-load-and-as3-0/244629 "2007-11-20T12:53:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hokken](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@hokken](https://forum.kirupa.com/u/hokken)
#### Post date: [November 20, 2007, 12:53pm UTC](https://forum.kirupa.com/t/onclipevent-load-and-as3-0/244629/1 "2007-11-20T12:53:45Z")

</div>

I have been looking for the correct event that replaces the AS2.0 onClipEvent(load) in AS3.0. Basically I just want to run some code when a movie clip has been initialized on the stage.

The only thing that seems to do the job is the event RENDER. Although it seems to work with empty movie clips I am still unsure that it is the correct event.

example code:

```php
myMovieClip.addEventListener(Event.RENDER, myMovieClipInit);

function myMovieClipInit(event:Event){
   // initialization
}

```

Any thoughts ?

Hokken
