Bar loaders? HOW do u make them

hey …can u guys help me on how to make a bar loader …
the steps and coding…thanks a lot…

This code should work fine, make an empty movieclip and attach this code to it.

onClipEvent(enterFrame){
if(_root.getBytesLoaded () > 0 && _root.getBytesLoaded() == _root.getBytesTotal() )
_root.gotoAndPlay(“beginMovie”);
}else{
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
percent = int(loaded/total * 100)
//Scales the bar to percent, which has to have getBytesLoaded()
bar._xscale = percent;
}
}
Post again if you need help.

Good Luck

Kyle
:slight_smile:

i get this error when i insert that code

Scene=Scene 1, Layer=loader, Frame=1: Line 4: ‘else’ encountered without matching ‘if’
}else{

and you had an extra } at the bottom of the code :o)

how do i fix the if error?

right seen as im pretty sick of loader questions i kinda know it
ucn get a component from http://www.flashcomponents.net called loader install it create a new movie import ur movie to the libary drag ur movie over 1 frame create a new layer called preloader in th first frame of preloader add the loader by draging it on to the stage press ctrl+enter twice to view it

-Tom