you click the button for the first image, it loads with preloader and everything is perfect, you click the second image, it loads but no preloader is shown
i thought it was a problem with the levels but i changed each script first to an incrementing variable and then to a static number, each with their own number, but that didn’t work.
i think it might be that the old “preloader” and “container” symbols are still active but i’m not sure
here’s the code i’m using.
this.createEmptyMovieClip("preloader", 1000);
this.createEmptyMovieClip("container", 2000);
preloader.onEnterFrame = function() {
var l = container.getBytesLoaded();
var t = container.getBytesTotal();
var getPercent = l/t;
loadText = Math.round(getPercent*100)+"%";
loadBar._width = getPercent*160.5;
if (l>0 && l>=t) {
container._visible = 1;
delete loadText;
loadBar._visible = 0;
}
}
alright i took that line out and the text still disappears b/c i set it = “” and the loadbar doesn’t go away after it’s done loading … but it does work when you load another image … it just stays there
this.createEmptyMovieClip("preloader", 1000);
this.createEmptyMovieClip("container", 2000);
container._visible = 0;
loadBar._visible = 1;
with (container) {
loadMovie(_root.picture);
_x = 240;
_y = -60;
_xscale = 35;
_yscale = 35;
_visible = false;
}
preloader.onEnterFrame = function() {
var l = container.getBytesLoaded();
var t = container.getBytesTotal();
var getPercent = l/t;
loadText = Math.round(getPercent*100)+"%";
loadBar._width = getPercent*160.5;
if (l>0 && l>=t) {
container._visible = 1;
loadText = ""
loadBar._visible = 0;
but it’s still not working (doing the same thing it was doing before i posted actually.
i probably put stuff in the wrong place =)
…edit…
i forgot to update the swf file on the server before i tested … lol
ok so now the loadbar works the way it’s supposed to on each image but the text doesn’t come back each time
right it works … the loadBar does it’s thing and the images load … but the numbers only show up on the first image i load … the other images have the loadbar but no percentage