# AS2 loadClip button functions stopped working

**URL:** <https://forum.kirupa.com/t/as2-loadclip-button-functions-stopped-working/274042>\
**Category:** flash\
**Created:** [October 24, 2008, 3:01am UTC](https://forum.kirupa.com/t/as2-loadclip-button-functions-stopped-working/274042 "2008-10-24T03:01:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hienluvshien](https://avatars.discourse-cdn.com/v4/letter/h/76d3ee/32.png) [@hienluvshien](https://forum.kirupa.com/u/hienluvshien)\
**Post date:** [October 24, 2008, 3:01am UTC](https://forum.kirupa.com/t/as2-loadclip-button-functions-stopped-working/274042/1 "2008-10-24T03:01:10Z")

</div>

created a .swf that continously scrolls with a pause and play button with only actionscript. The file was too large so I created a preloader in a seperate file loading the .swf with loadClip, but the buttons on the .swf stopped working! What do I need to do to get the buttons working again? I’m completely baffled.

You can see what I mean by looking at the two .swf’s:  
[www.firstchoicelandscaper.com/slideshow.swf](http://www.firstchoicelandscaper.com/slideshow.swf)  
[www.firstchoicelandscaper.com/slideshowpreload.swf](http://www.firstchoicelandscaper.com/slideshowpreload.swf)

Here’s the code I use for the preloader and the loadclip:  
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);

mcl.loadClip(“slideshow.swf”,holder);

```auto
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);

mcl.loadClip("slideshow.swf",holder);

```
