Home | Help Forums | Web Design Tutorials | Free Swishmax Downloads | All Downloads

 

 

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

   Swish Templates
   SWiSH Climax
   GimpTalk
   Idea Designs
   Sposatoettore
   Try Acai Berry Diet
   Download Free Ringtones
   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


All rights reserved - swish-db.com