Cheers for those links, extremely helpful!
I now have another problem, followed the External SWF Preloading tutorial (learnt a lot about preloading in that).
If you go to this link and click on one of the links in the flash file, the internal clip begins loading, but then loads again for some reason. The code the preloader is as follows:
Code:
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("http://www.design-image.co.uk/flash/print.swf",holder_mc);
b1.onRelease = function() {
loader._visible = true;
mcl.loadClip("http://www.design-image.co.uk/flash/print.swf",holder_mc);
}
b2.onRelease = function() {
loader._visible = true;
mcl.loadClip("http://www.design-image.co.uk/flash/large.swf",holder_mc);
}
b3.onRelease = function() {
loader._visible = true;
mcl.loadClip("http://www.design-image.co.uk/flash/websites.swf",holder_mc);
}
Obviously changing the mcl.loadClip("http://www.design-image.co.uk/flash/print.swf",holder_mc); part for each section. And the loader movie clip is a layer above the holder clip which disappears once completed.
Any ideas on what's causing preloader to start, complete and then repeat itself? I've had a go at removing parts of code and seeing what happens, but I am having no joy, so any help would be much appreciated!
Thanks in advance.
** Fixed it!**
It turns out that I have fixed it without even realising, I moved the external clips start frame back by a couple and boom, it worked a treat.
Check it out at www.design-image.co.uk
Bookmarks