ok i’ve looked all overthe internet, and have played around a bit, but whenever i try to mask a loading bar (i.e. a picture is revealed as the loading bar progresses) i confuse myself.
any help as to how this can be accomplished / link to a tutorial that tells me how to do this would be appreciated =)
thanks!
ok - just use the standard loader function
barlevel = Math.floor((getBytesLoaded()/getBytesTotal())*100);
then make a movie clip called “bar” and in it put 100 Frames of animation of the mask revealing the image, from frame 1 with no image, to frame 100 with all of it showing. put a stop(); action in its first frame
then back in the main loader code, just put
if(barlevel > 0){
_root.bar.gotoAndStop(barlevel);
} else {
_root.bar.gotoAndStop(1);
}