Hi!
I’m working on a gallery… yes, once again, but I can get the preload part to work.
I’m using xml to load images, but there’s a function which is not working, any help would be greatly appreciated.
This is it:
// this is the function that is not working
dislpayPicture = function () {
holder = theScene.createEmptyMovieClip("holder", 1050);
holder._x = -400;
holder._y = -300;
holder.boton = theScene.holder.createEmptyMovieClip("button", 0);
holder.boton._alpha = 0;
this.onEnterFrame = function() {
var bytes_loaded = holder.boton.getBytesLoaded();
var bytes_total = holder.boton.getBytesTotal();
var percent_loaded = Math.round((bytes_loaded/bytes_total)*100);
if (percent_loaded == 100) {
holder.boton._alpha += 10;
holder.onRelease = unloadImage;
delete this.onEnterFrame;
}
};
};
Thanks in advanced.