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