Hey guys I am trying to paste some preloader code from a f6 project into an f8 
project but its acting really weird. The traces I have put in for watching my 
percent grow don't even begine to trace until about 46%. I figured it would be 
some kind of issue with exporting to first frame stuff but I have none of that 
in the project. And the graphic I have on the first frame are like 1/10 of the 
total size of the project. Anyone know why this code might not work right in 
f8. Can I not run traces right away with code in f8? Weird stuff...

[code on first frame]
preloader_mc.onEnterFrame = function() {
        totalNum = getBytesTotal();
        loadedNum = getBytesLoaded();
        trace("loadedNum: "+loadedNum);
        trace("totalNum: "+totalNum);
        percent = Math.round((loadedNum/totalNum)*100);
        trace("percent:"+percent);
        if (percent == 100) {
                trace("PLAY!!!");
                preloader_mc.percent_txt.text = "100";
                //preloader_mc._yscale = 100;
                //preloader_mc._xscale = 100;
                play();
        } else if (percent > 0) {
                preloader_mc.percent_txt.text = percent;
                //preloader_mc._yscale = percent;
                //preloader_mc._xscale = percent;
        }
};
stop();
[/code on first frame]

Corban Baxter      |      rich media designer      |      www.funimation.com


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to