get Beatles mp3 cool The Final Destination video CD melodies Michael Jackson qualitive X-Men Origins: Wolverine avi best hot Knock You Down get Monsters, Inc. DIVX nice White Album CD2 hot buy ipod The Skeptic qualitive mp3 Drake USA hot State of Play

Banner
Build a simple and Effective Preloader

Build a simple and Effective PreloaderPreloaders are one of the most significant element that a flash designer should always consider; approx. 10% of people leave your site when it takes more than 10secs to load, And 70% of people step away on flash sites when they saw an ugly preloaders, preloaders reflects the entire site, that's one of the main reason why we should make our preloader looks simple and interesting.

In This tutorial I'm going to show you how to make a simple preloader and since this is a preloader I then decided to include an invisible content which equivalent to 1mb, this is for the sake of previewing the preloader.

If you want to preview the preloader once more you need to clear your cache.

 

Build a simple and Effective Preloader

First, open up a new flash document, rename the first layer to background then add your desired background, then make another layer above and name him loader, drag in here our loading animation, I would be using my chibidesign logo, use your align vertical and horizontal center to put them exactly at the middle.

Build a simple and Effective Preloader

And then make another layer and name him frontlogo, copy [Ctrl C] our chibidesign logo from loader layer and paste it on our frontlogo layer, pasting at the same position using [Ctrl Shift V].

Build a simple and Effective Preloader

Convert the two of them into a movie clip, with an instance name of mc_logo and mc_frontlogo.

Build a simple and Effective Preloader

Select our mc_frontlogo then edit the logo and make it look like the figure, I actually grab the same background color gradient and mask it using chibidesign font to make it look like an empty shell.

Build a simple and Effective Preloader

Create a new layer above and name him ‘masking', create a rectangle to cover the whole mc_frontlogo but make sure the left side is perfectly aligned, and then convert the layer to mask.

Build a simple and Effective Preloader

Convert the Rectangle to a movie clip, with an instance name of ‘mc_mask', Double click the movie clip and make it move to the right using motion tween, make sure you end up on frame 100.

Build a simple and Effective Preloader

Make another new layer on top and name him textloading, this layer will contain two elements, the loading text and the bytes loaded percentage.

Grab your text tool and type down ‘Loading' and convert it to a movie clip and an instance name of mc_loading, then on the right side type down zero [0%] With text align to the right, then on the properties panel select dynamic text and give him an instance name of ‘txt_percent'.

Build a simple and Effective Preloader

Then double click our mc_loading, and do a looping animation using gotoAndPlay function to go back on frame (1). And construct something if the loading has been completed, make sure you labeled the frame and add a stop action on the last frame.

Build a simple and Effective Preloader

Go back on to the root and add a new layer and name it ‘action'. Then on the first frame press F9 and type down the following script.

Those functions will trigger every time mc_logo enters frame, it will continuously calculate the bytes loaded and put things in action.

Build a simple and Effective Preloader

  1. stop();
  2. var mc_logo:MovieClip;
  3. var txt_percent:TextField;
  4. var mc_mask:MovieClip;

  5. mc_logo.onEnterFrame = function(){
  6. if (_root.getBytesLoaded() == _root.getBytesTotal()){
  7. _root.nextFrame();
  8. mc_loading.gotoAndPlay('complete');
  9. }

  10. var loaded:Number = Math.round ((_root.getBytesLoaded()/_root.getBytesTotal())*100);
  11. mc_mask.gotoAndStop(loaded);
  12. txt_percent.text = String (loaded + "%");
  13. }

 


Digg! Reddit! Del.icio.us! Mixx! Google! Live! Facebook! Technorati! StumbleUpon! Spurl! Newsvine! Blinklist! Furl! Blogmarks! Yahoo! Netvouz! Faves!

Comments (10)add
0
...
written by richie , April 08, 2009
Cool.. really simple but amazing
0
...
written by photoshop masking , April 08, 2009
Excellent tutorial. Thanks for sharing.
0
...
written by myra , April 10, 2009
very simple but the design was way too cool. thanks for sharing!
0
...
written by jokai , May 26, 2009
hi, there, it seems your good in flash, do you have a present job today? Our company was in need of a designer like you
0
...
written by mike , October 26, 2009
ummm...actually theres a few mistakes...
0
...
written by Eric , December 23, 2009
there something error that i get
in the var txt_percent:TextField;
0
...
written by Brady Frasier , January 03, 2010
please please email me back, i really need help, i followed this and it works perfectly, but it only starts showing anyting around 67% downloaded, before that it is just white. how do i fix this? it's as2 right?
0
...
written by Brady Frasier , January 03, 2010
also, it doesnt say complete where it should, it just skips to the picture.
0
...
written by prada handbags , June 28, 2010
Your technology is so terrific!
I know an online store which has a lot of XX in this style, they are suit you very much,can reveal your personality better!
Go to have alook when some time left, there must be many surprises!,
0
...
written by air jordan 10 , July 08, 2010
Stay at home and go sightseeing the world.Thank to the authors carefully describe about travel.Here are some sits about travel products.I hope you can help to recommend a tourist products for this season travel.

Write comment
smaller | bigger

busy
 




Site Templates and Wordpress themes. Flash components and effects Convert image into vector Your ad here - Click for more info Your ad here - Click for more info Your ad here - Click for more info