RE: [Flashcoders] preloader not completely preloading...

2006-12-11 Thread Alain Rousseau
The only place I see where this could fail, is at your if line. You should probably calculate nTBytes outside your checkLoad() function and pass it as a variable at your first call. for your if statement you should maybe write it like this : var minPercentLoad:Number = 100; if ( nPercent ==

RE: [Flashcoders] preloader not completely preloading...

2006-12-11 Thread Steven Sacks | BLITZ
stop(); function checkLoad() { var c = mc.getBytesLoaded(); var t = mc.getBytesTotal(); var p = (c / t) * 100; MC_LoaderBar._xscale = p; TXT_Load.text = Math.floor(p + %); if (p == 100 t 4) { delete this.onEnterFrame; mc.gotoAndPlay(main); } } this.onEnterFrame =

Re: [Flashcoders] preloader not completely preloading...

2006-12-11 Thread Count Schemula
Thanks everyone! On 12/11/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: stop(); function checkLoad() { var c = mc.getBytesLoaded(); var t = mc.getBytesTotal(); var p = (c / t) * 100; MC_LoaderBar._xscale = p; TXT_Load.text = Math.floor(p + %); if (p == 100 t 4) {