# MovieClipLoader

**URL:** <https://forum.kirupa.com/t/moviecliploader/236872>\
**Category:** Uncategorized\
**Created:** [August 24, 2007, 2:13pm UTC](https://forum.kirupa.com/t/moviecliploader/236872 "2007-08-24T14:13:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gibry21](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gibry21](https://forum.kirupa.com/u/gibry21)\
**Post date:** [August 24, 2007, 2:13pm UTC](https://forum.kirupa.com/t/moviecliploader/236872/1 "2007-08-24T14:13:07Z")

</div>

PLEASE HELP…can’t get this!!!

Hi folks. Having a little trouble with the MovieClipLoader class.

Basically I am tryin to create my site using this. I have a movie called “site\_loader”, in the action script in the first frame I have this;

var mcl:MovieClipLoader = new MovieClipLoader();  
var mclL:Object = new Object();  
mclL.onLoadProgress = function(target,loaded,total) {  
loader.percent.text = Math.round((loaded/total) \* 100) + “%”;  
}  
mclL.onLoadInit = function() {  
loader.\_visible = false;  
loader.percent.text = “”;  
}  
mcl.addListener(mclL);  
[COLOR=red]mcl.loadClip(“Resolve\_home.swf”,holder);[/COLOR]

This is all fine, it open a new movie “Resolve\_home” within the movie clip “holder” when the movie starts (and has a preloader)…all good…

My problem is this…now that I am in the new movie “Resolve\_home” which is inside the “holder” movieClip in the movie “site\_loader”…(still with me)…I want to have a button in the “Resolve\_home” movie which loads a new movie into the initial “holder” movieClip in the initial “Site\_holder” movie…I guess this is simple and involves the correct way of targeting the initial movie…( I guess it would also be good practice to unload the currrent movie before loading a new movie into the “loader” movie clip. THis is what I have so far on the movie “Resolve\_home” which has been loaded into the movieClip “loader” within movie “site\_holder” :

home\_btn.onRollOver = over;  
home\_btn.onRollOut = out;  
[COLOR=red]home\_btn.onRelease = goHome;[/COLOR]  
business\_btn.onRollOver = over;  
business\_btn.onRollOut = out;  
function over() {  
this.gotoAndPlay(2);  
}  
function out() {  
this.gotoAndPlay(7);  
}  
[COLOR=red]function goHome() {[/COLOR]  
[COLOR=red]loader.\_visible = true;[/COLOR]  
[COLOR=red]mcl.loadClip(“Resolve\_residential.swf”,holder);[/COLOR]  
[COLOR=red]}[/COLOR]
