Help - Search - Members - Calendar
Full Version: Complete preloader
Pixel2Life Forum > Member Tutorials and Requests > Forum Tutorial Archives > Miscellaneous Tutorials
fedekiller
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:
QUOTE
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 ^^
Donna
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.com/tutorials/Interact...Ca-48/index.php

http://www.actionscripts.org/tutorials/int...ers/index.shtml

http://www.flashkit.com/tutorials/Interact...Ca-33/index.php
patellio
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?

shades.gif

EDIT: otherwise, thanks for the tut...i never actually bothered to make a calculator in Flash until today!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.