Ok OK Don’t hate me. I know this topic has been done to death on more than one occasion.
I have been looking over various threads and tuts but come up empty handed.
If you click Gallery it loads the thumbnails in a new MC on the main stage.
Now, if you click one of the thumbnails it dynamically loads the .jpg with this code:
on (release) {
_root.createEmptyMovieClip("container",1);
container.loadMovie("vo01.jpg");
container._x = 55; container._y = 200 ;
}
As some people will be on dial-ups, I want to be able to use a progress bar or % as a visual for them. So, I have used this code: [Found it in a thread here someplace]
this.onEnterFrame=function(){
percent= Math.round((contain.getBytesLoaded()/contain.getBytesTotal())*100);
per.text = percent+"% loaded";
LoadingBar._width = percent;
}
I have a movie clip called LoadingBar and a dynamic text box called per on the MAIN stage.
The image loads but it doesn’t give a % or bar. What am I doing wrong? All the code together looks like this:
on (release) {
percent= Math.round((contain.getBytesLoaded()/contain.getBytesTotal())*100);
per.text = percent+"% loaded";
LoadingBar._width = percent;
_root.createEmptyMovieClip("container",1);
container.loadMovie("vo01.jpg");
container._x = 55; container._y = 200 ;
}
Thanx in advance.