Groups | Blog | Home
all groups > macromedia flash sitedesign > september 2004 >

macromedia flash sitedesign : HELP PLEASE (PRELOADER)


Patrick Bay
9/13/2004 12:23:09 PM
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]
Patrick Bay
9/13/2004 12:58:19 PM
Hi,

You need to select the frame, or object on which you want to put the
script. Then open the Actionscript window and paste the code in there.

Regards,
Patrick

[quoted text, click to view]
Patrick Bay
9/13/2004 1:29:26 PM
No problem :)

-----------------------------------------------------
www.baynewmedia.com

IRC (www.dal.net) -> #baynewmedia
-----------------------------------------------------



[quoted text, click to view]
cuasimodo
9/13/2004 4:15:35 PM
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.

cuasimodo
9/13/2004 4:46:35 PM
Thanks Patrick,

I don't know too much about scripts, I am an amateur. Let me ask you something
else. After I create the movie for the preloader, where do I have to insert
that script that you sent me? on the action window?

Tx
cuasimodo
9/13/2004 5:23:12 PM
AddThis Social Bookmark Button