i've been trying to build a loader and i think i almost accomplished my mission. this is the code i used on frame 1 of scene 1
stop();
myinterval = setInterval(preload,100);
function preload(){
if (_root.getBytesLoaded() >= _root.getBytesTotal()){
gotoAndStop("main",1);
clearInterval(myInterval);
}
}
the code seems to work but for some reason the movie has to load till 40% before the loading screen even appears.
you can see the site at omnisect.com
can anyone tell me what i'm doing wrong here?
by the way i'm using flash mx 2004
stop();
myinterval = setInterval(preload,100);
function preload(){
if (_root.getBytesLoaded() >= _root.getBytesTotal()){
gotoAndStop("main",1);
clearInterval(myInterval);
}
}
the code seems to work but for some reason the movie has to load till 40% before the loading screen even appears.
you can see the site at omnisect.com
can anyone tell me what i'm doing wrong here?
by the way i'm using flash mx 2004