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) {
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.onEnterF
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 == minP
3 matches
Mail list logo