# Using MovieClipLoader with transitions tut?

**URL:** <https://forum.kirupa.com/t/using-moviecliploader-with-transitions-tut/206225>\
**Category:** flash\
**Created:** [November 6, 2006, 10:25am UTC](https://forum.kirupa.com/t/using-moviecliploader-with-transitions-tut/206225 "2006-11-06T10:25:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sumo/32/1950_2.png) [@sumo](https://forum.kirupa.com/u/sumo)\
**Post date:** [November 6, 2006, 10:25am UTC](https://forum.kirupa.com/t/using-moviecliploader-with-transitions-tut/206225/1 "2006-11-06T10:25:47Z")

</div>

Hi!

I am trying to use MovieClipLoader with voetsjoebas tutorial on making Transitions between external swf’s. I want to display a preloader whenever an external swf is loading but I don’t success with this.

Here is the code I have been trying to use:

```auto

var mclListener:Object = new Object();
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(mclListener);

mclListener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
    var getPercent:Number = bytesLoaded/bytesTotal;
    loader_txt.text = Math.round(getPercent*100)+"%";
}

mclListener.onLoadInit = function()
{
    loader_txt.text = "";
}

menu.myButton_mc.onRelease = function() {
    if (_root.currMovie == undefined) {
            _root.currMovie = "swf1";
            _root.mcLoader.loadClip("swf1.swf", _root.container);
            } else if (_root.currMovie != "swf1") {
                if (_root.container._currentframe >= _root.container.midframe) {
                    _root.currMovie = "swf1";
                    _root.container.play();
                    }
            }
}

```

I appreciate if anyone can help me with this one.

-sumo-
