Hi,
Creating a preloader is pretty simple. Here is a sample script you can
work from:
this.createEmptyMovieClip('movieLoader',1);
this.movieLoader.loadMovie('newMovie.swf'); //Replace the file name
with your file
this.onEnterFrame=function() {
pLoaded=this.movieLoader.getBytesLoaded();
pTotal=this.movieLoader.getBytesTotal();
if ((pTotal==pLoaded) && (pTotal>0)) {
//Movie has loaded...put your actions here
} else {
//Movie is still loading...put your actions here
}
}
Regards,
Patrick
www.baynewmedia.com *****
Find me on IRC (
www.dal.net)!
Nickname: pbay
Channel: #MacromediaFlash
*****
[quoted text, click to view] cuasimodo wrote:
> Hello all!
>
> I am starting using Flash and I am not a pro yet. I have my site done and I need help on how to create a preloader, anyone can tell me how to create one.
>