Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 24, 2008, 06:36:12 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Shove in right direction... Loader  (Read 405 times)
Santos
Jabba the Hutt
*****
Offline Offline

Posts: 562


WWW
« on: November 07, 2001, 07:18:00 PM »

Wellll, i have tried to figure out how to make one of them cool loading % screen thingies.

I would like the percentage kind, but how do you make one, with the percentage showing you how far along you are in your loading process.

I cant figure it out, maybe someone can help me along    PLEASE??!!  <IMG SRC="cool.gif" border="0"> HEEEEEEEEEEEELP !!!!

[ November 09, 2001: Message edited by: Santos ]

Logged

Smile, it makes people wonder what you're up to...
n2brand
Intergalactic Superstar
*****
Offline Offline

Posts: 129


WWW
« Reply #1 on: November 20, 2001, 01:12:00 AM »

1.Insert a new scene and call it preloader.
 
2.Check to see what the last frame # in your movie is.   Keep this in mind.

3.In the Preload scene insert two blank keyframes.  

4.Double-click the first keyframe and assign it the following actions.
'If Frame Is Loaded' and select the last scene in your movie (if you only have 2 scenes select the one that isn't the preloader).  Also, type the last number of the frame you remembered earlier into the 'Frame Number' area.  Then add another action GoTo & Play (which should be inside the If Frame is loaded action) and select 'Next Scene' from the drop down box. That's all for this frame

5.Double-click the second keyframe now.  Add a GoTo & Play action, <current scene>, Frame #1.
 
6.That is all you need to do as far as the functin aspect is concerned, but you have no image to load so now you can make a image.
7.Design an image... probably the best choice would be a movie clip.  Don't make it too much though as the whole point of a preloader is too make things better for your audience to wait.  After you are done making your image, insert it into the Movie Stage from your personal library.  Insert an extra layer under your "Preloader" scene and drop the MC (Movie Clip) into it at frame 1 just to make things more organized.
For a design you can make anything from a fading text to a bar that 'looks' like it is loading.  Whatever you want can go here.

8.
Math.floor(_root.getBytesLoaded()/1000);

and to get the percentage:

total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
percentage = Math.floor(loaded/total*100);

9.Test your Preloader by going to your Control Menu > Test Movie
   
Give this a try !!
Logged


« If we agree on everything, one of us is unnecessary »
Santos
Jabba the Hutt
*****
Offline Offline

Posts: 562


WWW
« Reply #2 on: November 20, 2001, 05:15:00 AM »

wow, lotsa work  

THANK YOU SOO MUCH tho, much appreciated.
Logged

Smile, it makes people wonder what you're up to...
n2brand
Intergalactic Superstar
*****
Offline Offline

Posts: 129


WWW
« Reply #3 on: November 20, 2001, 06:02:00 AM »

Ahh, yes... the fruits of your labor are so rewarding. As NIKE logo says "just do it"....lol  
Logged


« If we agree on everything, one of us is unnecessary »
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM