First off I have read many MANY posts on preloading jpgs. I am using code posted by LIB in this thread
I have on my main stage a container clip. It is on this container clip that I want to use the code. I have this in the Actionscript layer of the container clip:
[AS]
this.createEmptyMovieClip(“pload”, 1000);
this.createEmptyMovieClip(“imagecon”, 1001);
//imagecon.loadMovie(“yourImage.jpg”);
imagecon._x = 24.3;
imagecon._y = 49.5;
imagecon._visible = false;
pload.onEnterFrame = function() {
var l = imagecon.getBytesLoaded();
var t = imagecon.getBytesTotal();
var getPercent = l/t;
loadText = Math.round(getPercent100)+"%";
loadBar._width = getPercent200;
if (l>0 && l>=t) {
imagecon._visible = 1;
delete this.onEnterFrame;
}
};
[/AS]
On the MAIN timeline I have a button and I have this code on the button:
[AS]
on(release){
//some other stuff
_root.container.imagecon.loadMovie(“pics/mst_s2.jpg”);
}
[/AS]
When I test the movie all is dandy, though because it’s all sitting on my hard drive you don’t really see the preloader, just the pic. However, when I upload it to the server all you see is “0%”. The pic is only 3kb - so what the hey?
Any help appreciated! :bu: