Jump to content


Photo
- - - - -

Complete preloader


  • Please log in to reply
2 replies to this topic

#1 fedekiller

fedekiller

    Young Padawan

  • Members
  • Pip
  • 18 posts

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 ^^

#2 Donna

Donna

    Retired P2L Queen!

  • P2L Staff
  • PipPipPipPip
  • 12,330 posts
  • 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

#3 patellio

patellio

    Young Padawan

  • Members
  • Pip
  • 70 posts
  • 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 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users