Adding %age Preloader to External SWF files - SWiSHMax Tutorials
 
  Buy Ebooks, Video Games, DVDs, Electronics and more !
Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads Make Money Online Blog . Free Image and Photo Sharing and Hosting

 

 

Company

Home

Nework Details

Tutorials

SWiSH 2

SWiSHMax

Flash MX

PHP & MySQL

HTML / JScript

Adobe Photoshop

Corel Draw

Gimp

Miscellaneous

Downloads

Templates

Plugins

Fonts

Wallpapers

Free Images

Scripts and Codes

Products

E-Books

SWiSH BB

SWiSH Templates

SWiSH-DB Newsletter
Subscribe to our newsletter : GO
  Partners / Affiliates

   Free image hosting
   Web Design Pakistan
   Swish Templates
   SWiSH Climax
   Talkfreelance Community
   Template Desire
   Lite boards
   Script Sector
   GimpTalk
   13dots
   Idea Designs
   PHP Cafe
   Sposatoettore
   Free swishmax templates
   Swishzone

Manage your site with Flax Article Content Management System
Adding %age Preloader to External SWF files
Category : SWiSHMax | Level : Intermediate | Language : English
Ask Question | Read Comments | Post tutorial | Previous | Next

Web www.swish-db.com

Adding %age Preloader to External SWF files

This is the most asked question on all the swish forums, so I thought to write an easy tutorial for you guys.

Description
This tutorail demonstrates the procedure to create a percentage
preloader (with simple progressbar), for Externally loaded SWF files
within your sprites.


Follow the steps

1. Create a Dynamic TextBox name it _myMsgObj and name its variable target myMsg
2. Create a rectangle for 20x20 pixles
3. Group it as Sprite
4. Name the sprite 'progBar'
5. Put a stop(); action in first frame of your first preloader Scene as:

CODE
 
  onFrame(1) {
     stop();
  }


6. Copy following code and paster in the main timeline anywhere

CODE

  onEnterFrame() {
     pLoaded = this.percentLoaded();
     tBytes = this.getBytesTotal();
     myMsg =  pLoaded+"% Loaded of "+tBytes+" bytes";
     progBar._width = pLoaded;
     if(pLoaded == 100)
        play();
  }


and your preloader is added.....

post questions if you dont understand any of its steps.

regards
Ali Imran


© 2002-2005 Flaxweb Network | Article Manager | Gimp Tutorials Library | RAD C++ Library | Free C/C++ Sourcecode |
Sites of interest : Web Design Blog | Swish Templates | Swishmax Ebook | Photoshop Templates | Gimp Tutorials | Text Forum | Make Money Online