# onLoadStart and loading into \_level0

**URL:** <https://forum.kirupa.com/t/onloadstart-and-loading-into--level0/243284>\
**Category:** flash\
**Created:** [November 5, 2007, 12:21pm UTC](https://forum.kirupa.com/t/onloadstart-and-loading-into--level0/243284 "2007-11-05T12:21:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coolburn](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@coolburn](https://forum.kirupa.com/u/coolburn)\
**Post date:** [November 5, 2007, 12:21pm UTC](https://forum.kirupa.com/t/onloadstart-and-loading-into--level0/243284/1 "2007-11-05T12:21:03Z")

</div>

Hello,

I want to load a .swf file into \_level0, so that I can inherit its frame rate and other properties.

I am doing this with a wrapper .swf (so I can also set some variables on the loaded movie eventually).

However, I cannot seem to get the onLoadStart event to be called. onLoadInit is called fine, but onLoadStart is not. (And, I really need this to happen in onLoadStart so that I can set the variables before ANY of the loaded clip’s actionscript is executed.)

Code in Frame 1 of the movie:

```php

var mc_loader = new MovieClipLoader();
var listener = new Object();

listener.onLoadStart = function (target) {
    target._lockroot = true;
    trace("EXECUTING onLoadStart");

};

mc_loader.addListener(listener);
mc_loader.loadClip("file:///c:/child.swf", "_level0");

```

Can anyone tell me how to do this properly? I have seen it done before, but I can’t seem to get it to work myself. I’m using Flash CS3, but publishing as Flash 8, AS2. (The child movies will all be AS2 or AS1.)

Do I need to do something special in the Publish settings? It seems like this should be a simple thing.

Thank you in advance!
