hey guys,
i searched almost any topic and didn’t found a tutorial about preloaders in AS3.can anyone tell me how to mak a preloader in AS3 ??? i have th movie clip and the scenes…i just need the actionscript i am gonna put in the preloader’s scene so to move to the next scene when the total bytes downloaded are equal the total.
this is the code i use in AS2!
stop();
var yChange = 65;
var yStart = 329;
myInterval = setInterval(preload,100);
function preload() {
var current = _root.getBytesLoaded();
var total = _root.getBytesTotal();
var pctLoaded = Math.round(current/total100);
mask_mc._y = yStart - yChange/100pctLoaded;
if (current >= total) {
gotoAndStop("main",1);
clearInterval(myInterval);
}
}
this is for the main movie of my project. also i want to know how to preload external swfs with another preloader movieclip…please anyone gimme details or a linki to another tutorial…
thanks:goatee: :goatee: