# MovieClipLoader class

**URL:** <https://forum.kirupa.com/t/moviecliploader-class/51168>\
**Category:** flash\
**Created:** [May 10, 2004, 4:51pm UTC](https://forum.kirupa.com/t/moviecliploader-class/51168 "2004-05-10T16:51:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danneman](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Danneman](https://forum.kirupa.com/u/Danneman)\
**Post date:** [May 10, 2004, 4:51pm UTC](https://forum.kirupa.com/t/moviecliploader-class/51168/1 "2004-05-10T16:51:08Z")

</div>

Im doing a class that is, among other things, supposed to load movieclips contained within the library (not separate .swf’s) into another movieclip.

Well, Im trying to use the new MovieClipLoader for that part, which looks something like this:

[AS]  
// CREATE: MovieClipLoader.  
var MCL\_1 = new MovieClipLoader();

// LOAD: sub\_MC into another super\_MC  
MCL\_1.loadClip( \_root.sub\_MC, \_root.super\_MC);  
[/AS]

The super\_MC exists on the stage of the file.  
The sub\_MC exists in the library of the file, and not on stage.

That wont work. Perhaps the “loadClip”-function can only load external swf-files like this:

[AS]  
// CREATE: MovieClipLoader.  
var MCL\_1 = new MovieClipLoader();

// LOAD: External SWF into super\_MC  
MCL\_1.loadClip( “myPath/ExternalSWF.swf”, \_root.super\_MC);  
[/AS]

…which btw works like a charm.

Am I using the wrong function (loadClip)?  
Or do I have to do something with my movieclips in the library to make them accessable somehow?

Thanks
