-
1. Re: A good simple preloader.
Ned Murphy Jul 31, 2012 5:56 PM (in response to mentalcase129)I believe this meets your requirements, and is a preferred approach...
AS3 Preloader
------------- -
2. Re: A good simple preloader.
mentalcase129 Aug 1, 2012 9:50 PM (in response to Ned Murphy)Thanks, this is helpful and will definately do the trick. I'd love to be able to add a status bar to it though. Any tips on that? He alludes to being able to add graphics like that but doesn't elaborate. My actionscript knowledge is for the most part pretty basic so it's hard to launch into something like that without some guidance.
-
3. Re: A good simple preloader.
Ned Murphy Aug 2, 2012 4:58 AM (in response to mentalcase129)If you look at the loop function in the code he provides, that is what you will use to control things like a loading bar... the key being to understand and make use of the perc value that is being calculated.
You can use the perc value to control the scaleX of something, such as a status bar...
yourStatusBar.scaleX = 0; // a starting value for your status bar
function loop(e:ProgressEvent):void
{
var perc:Number = e.bytesLoaded / e.bytesTotal;
percent.text = Math.ceil(perc*100).toString();
yourstatusBar.scaleX = perc;
}


