Ok so I am using the following code from the dynamic jpg loader tutorial:
photo1.onRollOver = function () {
_root.createEmptyMovieClip(“container”, 1);
loadMovie(“photos/BuriedFence.jpg”, “container”);
container._x = 200 ;
container._y = 134.5;
}
But what I want is for it to load the image but while it is loading to show a percent loaded preloader for the image specifically.
How do I do it? PLEASE HELP!
Michael
system
March 15, 2003, 9:48pm
2
system
March 15, 2003, 10:54pm
3
this.createEmptyMovieClip(“preloader”,_1000);
this.createEmptyMovieClip(“container”,_1001);
//container._x = 250 ;
//container._y = 0 ;
container.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*500;
__if (l>0 &&l>=t) {
________container.visible =_1;
________delete_this.onEnterFrame;
____}
};
button.onPress_=function() {
____container.loadMovie(“test.jpg”);
};
I have your code in one hand hehe and my site in the other. I’m confused
Using the following variables can you please show me what the code would look like? Do I need to make a preloader instance?? What is “preloader” calling?
Ok so
the image name is:
photos/BuriedFence.jpg
and the button instance name is:
photo1
and I want it to be on rollover instead of click.
PLEASE!