# onLoadInit alternatives

**URL:** <https://forum.kirupa.com/t/onloadinit-alternatives/240228>\
**Category:** Uncategorized\
**Created:** [October 1, 2007, 5:34am UTC](https://forum.kirupa.com/t/onloadinit-alternatives/240228 "2007-10-01T05:34:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ultra](https://avatars.discourse-cdn.com/v4/letter/u/a587f6/32.png) [@Ultra](https://forum.kirupa.com/u/Ultra)\
**Post date:** [October 1, 2007, 5:34am UTC](https://forum.kirupa.com/t/onloadinit-alternatives/240228/1 "2007-10-01T05:34:53Z")

</div>

Hi,

I have a preloader here that works great, but I would like to change one part   
of the code…

I am using ‘onLoadInit’ to declare some actions as soon as the movie is loaded, but I want those actions to start when the movie is loaded to 80 % because the movie has an intro that will gain me some time to load the rest…

here’s the part of code that I want to change:

```auto
myListener.onLoadInit = function (target:MovieClip){
		_root.gotoAndPlay("sections");
		_root.container.play();
		trace ("Loaded!!!!");
		loader_2.loadbar._visible = false;
	}

```

What are my options to replace ‘onLoadInit’ with something that I have more control over the load progress ?

As always, thanx for your help in advance !!! ![](http://forum.kirupa.com/uploads/kirupa/1943/e479158fd6e0822f.gif)

Mike
