# Need help with \[flash API\] loader.as

**URL:** https://forum.kirupa.com/t/need-help-with-flash-api-loader-as/23054
**Category:** flash
**Created:** [June 12, 2003, 7:55am UTC](https://forum.kirupa.com/t/need-help-with-flash-api-loader-as/23054 "2003-06-12T07:55:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![freedom](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@freedom](https://forum.kirupa.com/u/freedom)
#### Post date: [June 12, 2003, 7:55am UTC](https://forum.kirupa.com/t/need-help-with-flash-api-loader-as/23054/1 "2003-06-12T07:55:05Z")

</div>

Hey guys.

I downloaded [flashAPI] libraries ([http://www.yestoall.com/flashAPI/index.html](http://www.yestoall.com/flashAPI/index.html)) and have some problems using them. Unfortunately there is no detailed documentation on usage so I have to write to this forum.

I’d like to use loader.as to preload movie into a movieclip. I know there are other scripts and I could even do one on my own. But since this library is done already and I use other libs also I’d like to know how to use this one.

Usage for this function is the following

```auto

var loading = new Loader(100,"test.swf");

loading.onLoading = function () {
  trace("loading " + this.percentage + "%");
}

loading.start();

```

And now I don’t know how to assign the loaded SWF to a movieClip. This thing loads the movie into level 100 and no object - or maybe just that I don’t know what.

Anyone have a solution? Call me stupid but I really don’t know how to make this work and believe me - I tried.

Thanks
