Pixel2Life Forum: Complete preloader - Miscellaneous Tutorials - Pixel2Life Forum

Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Complete preloader with kb counter! ^^ Rate Topic -----

Array

#1 User is offline   fedekiller 

  • Young Padawan
  • Pip
  • Group: Members
  • posts 18
  • Joined: 23-April 05

Posted 17 June 2005 - 01:23 PM

1. Make a new document xD

2. draw a bar and make it a mc, instance name: bar

3. make 3 dinamic text, instance name:
- porc_txt
- kb1
- kb2

4. add this as:

stop();
_root.bar._xscale = 0;
//size of the bar
_root.onEnterFrame = function() {
// im adding a new function
total = _root.getBytesTotal();
//total=total bytes
loaded = _root.getBytesLoaded();
//loaded = bytes loaded
porc = Math.round((loaded*100)/total);
//and here the porcent
_root.bar._xscale = porc;
_root.porc_txt.text = porc+"%";
_root.kb1.text = Math.round(loaded/1024);
_root.kb2.text = Math.round(total/1024);
//bytes/1024=kb
if (loaded == total) {
  gotoAndPlay("Escena 2", 1);
}
};


5. in a new scene put the animation or the game ^^
0

#2 User is offline   Donna 

  • Retired P2L Queen!
  • PipPipPipPip
  • Group: P2L Staff
  • posts 12,330
  • Joined: 29-September 04
  • Gender:Female
  • Location:B.C Canada

Posted 17 June 2005 - 02:00 PM

Just a suggestion to add a final swf effect to this and also some images and more explanation into the tutorial.

Examples Of what I mean:

http://www.flashkit....Ca-48/index.php

http://www.actionscr...ers/index.shtml

http://www.flashkit....Ca-33/index.php
0

#3 User is offline   patellio 

  • Young Padawan
  • Pip
  • Group: Members
  • posts 70
  • Joined: 27-December 04
  • Location:California

  Posted 30 June 2005 - 01:18 AM

Yeah...(what Donna said)...with a .swf file, it would be alot easier to see how your final product came out...and incase any noobs can find something you say, for example the dynamic instances, can you please add pix for their sake?

:lol:

EDIT: otherwise, thanks for the tut...i never actually bothered to make a calculator in Flash until today!

Edited by patellio, 30 June 2005 - 01:19 AM.

0

Share this topic:


  • You cannot start a new topic
  • You cannot reply to this topic

0 user(s) are reading this topic
members, guests, anonymous users