Taking Creativity To A New Level
 
HomePortalInhouse AnimationsDownloadsLog inMemberlistSearchUsergroupsRegisterLinks

Share | 
 

 How To Make An Auto-Play Preloader

Go down 
AuthorMessage
Cory
Averagely Active
Averagely Active
avatar

Posts : 77
Join date : 2008-12-12
Age : 27

PostSubject: How To Make An Auto-Play Preloader   Mon Dec 15, 2008 1:59 pm

So ya need a preloader you say?
Well lets get cracking.
**this is for as2 not as3**

First create a new flash document then press f8 to create a new movieclip (MC)

Now create an 100 frame animation exactly of a progressive bar loading or an intro animation or something. Not 99, not 101. 100.

example:



Yay you made a 100 frame animation, good job. Now make three blank keyframes on the main timeline in the beginning (right click > Insert Blank Keyframe). Highlight the third keyframe and go to Properties. Set the frames name as "start" without the quotations.




Next put your 100 frame animation in the first two frames, make sure they are in the same place in both frames though. Now on both of the 100 frame animations on both frames add this code

Code:
onClipEvent (enterFrame) {
gotoAndPlay(_root.percentDone);
}

Make sure this is on the Movieclip, not the frame or it won't work!




Finally in the actions of the first frame add
Code:
totalBytes = Math.round(getBytesTotal()/1024);
loadedBytes = Math.round(getBytesLoaded()/1024);
percentDone = Math.round((loadedBytes/totalBytes)*100);
if (_root._framesloaded>=_root._totalframes) {
gotoAndPlay("start");
}

and on the second frame's actions add
Code:
gotoAndPlay(1);


Basically:
1. Create an one hundred frame animation in a mc
2. In another mc create 3 blank keyframes
3. Name the third frame "start" without the quotations
4. Put your mc in the first two frames
5. Add the script

tada, now give yourself a pat on the back =3


Last edited by Cory on Wed Dec 17, 2008 4:15 pm; edited 3 times in total
Back to top Go down
View user profile
Sarah
Epic Poster
Epic Poster


Posts : 897
Join date : 2008-12-09
Age : 78

PostSubject: Re: How To Make An Auto-Play Preloader   Mon Dec 15, 2008 4:48 pm

Thank you. That was helpful.
Back to top Go down
View user profile
Cory
Averagely Active
Averagely Active
avatar

Posts : 77
Join date : 2008-12-12
Age : 27

PostSubject: Re: How To Make An Auto-Play Preloader   Mon Dec 15, 2008 6:08 pm

Your Welcome :)
Back to top Go down
View user profile
Axle
Averagely Active
Averagely Active
avatar

Posts : 43
Join date : 2008-12-07
Age : 24
Location : Internets

PostSubject: Re: How To Make An Auto-Play Preloader   Mon Dec 15, 2008 11:38 pm

Yay, learning.
Back to top Go down
View user profile
AkLeMo
-
-
avatar

Posts : 1528
Join date : 2008-12-07
Age : 23
Location : India, Bangalore

PostSubject: Re: How To Make An Auto-Play Preloader   Tue Dec 16, 2008 5:37 am

Sticky'd

_________________
Back to top Go down
View user profile
cal
Amazing poster
Amazing poster
avatar

Posts : 155
Join date : 2008-12-15
Age : 109
Location : the land before time

PostSubject: Re: How To Make An Auto-Play Preloader   Tue Dec 16, 2008 12:13 pm

yay
Back to top Go down
View user profile
Cory
Averagely Active
Averagely Active
avatar

Posts : 77
Join date : 2008-12-12
Age : 27

PostSubject: Re: How To Make An Auto-Play Preloader   Tue Dec 16, 2008 12:58 pm

AkLeMo wrote:
Sticky'd

swwwweet, now this is the part where I thank you. =3
Back to top Go down
View user profile
AkLeMo
-
-
avatar

Posts : 1528
Join date : 2008-12-07
Age : 23
Location : India, Bangalore

PostSubject: Re: How To Make An Auto-Play Preloader   Wed Dec 17, 2008 2:42 am

and this is where I say no problem. :3

_________________
Back to top Go down
View user profile
Zackie
FR Lover
FR Lover
avatar

Posts : 342
Join date : 2008-12-21
Age : 25
Location : EARTH!!!

PostSubject: Re: How To Make An Auto-Play Preloader   Mon Dec 22, 2008 11:10 pm

hehe, simple and basic
Back to top Go down
View user profile http://www.vanflash.com
Beret
Amazing poster
Amazing poster
avatar

Posts : 195
Join date : 2008-12-23
Age : 24
Location : Desk

PostSubject: Re: How To Make An Auto-Play Preloader   Fri Jan 02, 2009 11:57 am

Great tutorial, thank you.
Back to top Go down
View user profile https://www.youtube.com/theboxof7
Sponsored content




PostSubject: Re: How To Make An Auto-Play Preloader   

Back to top Go down
 
How To Make An Auto-Play Preloader
Back to top 
Page 1 of 1
 Similar topics
-
» Guide: Running Uranium 4.0 (Windows-version) on MacOSX
» Discussion: Let's say you're the first person to make alien contact
» How to make Firefox go faster.
» HOW TO MAKE BOOKMARKS FROM METAL
» Bow Auto Parts (Bow Auto Salvage) - Excellent to deal with!

Permissions in this forum:You cannot reply to topics in this forum
Flash-Revival :: Creativity :: Tutorials-
Jump to: