Hi there,
I seem to have found a way around my initial problem.
Instead of using a "Loader component" I made a movieclip container and then used "loadclip" to call the swf file in......but now I have new problem.
If you go to
http://www.ifdezine.com/dg/flash/ - the preloader mask moves up to fill the logo.
In the other version I am doing
http://www.ifdezine.com/dg/flash3 I can get the % count to work but I cant figure out how to get the mask to work.
Its most probably something in my action script cause I'm using information from 2 tutorials together and inbetween I'm doing something wrong.
Here is the action script...
__________________________________________________
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
var yChange = 142;
var yStart = 70;
myInterval = setInterval(preload, 100);
trace("myInterval");
function preload() {
var current = _root.getBytesLoaded();
var total = _root.getBytesTotal();
var pctLoaded = Math.round(current/total*100);
trace("mask");
loader.mask_mc._y = yStart-yChange/100*pctLoaded;
trace("clear Interval");
if (current >= total) {
clearInterval(myInterval);
}
mclL.onLoadProgress = function(target, loaded, total) {
loader.pct_txt.text = Math.round((loaded/total)*100);
};
}
mclL.onLoadInit = function() {
loader._visible = false;
loader.pct_txt.text = "";
};
mcl.addListener(mclL);
mcl.loadClip("index3.swf",holder);
__________________________________________________
I'm also posting the zip file with the fla and swf files
Look forward to hearing from you
Cheers - Christopher