Powerblaster
03-14-2007, 01:21 AM
Here is a video I made on how to create a preloader in flash I hope this helps all of you out.
Click here for tutorial (http://www.gfxaid.com/tutorials/preloader)
And here is the code just in case you couldn't really see it in the video or hear what I was saying.
Action Keyframe 1:
var amountLoaded:Number = _root.getBytesLoaded() / _root.getBytesTotal();
preloader._width = amountLoaded * 240;
loadText.text = Math.round(amountLoaded * 100) + "%";
Action Keyframe 2:
if(_root.getBytesLoaded() == _root.getBytesTotal()){
gotoAndPlay(3);
}
else {
gotoAndPlay(1);
}
Click here for tutorial (http://www.gfxaid.com/tutorials/preloader)
And here is the code just in case you couldn't really see it in the video or hear what I was saying.
Action Keyframe 1:
var amountLoaded:Number = _root.getBytesLoaded() / _root.getBytesTotal();
preloader._width = amountLoaded * 240;
loadText.text = Math.round(amountLoaded * 100) + "%";
Action Keyframe 2:
if(_root.getBytesLoaded() == _root.getBytesTotal()){
gotoAndPlay(3);
}
else {
gotoAndPlay(1);
}