February 17, 2011 - Comments Off on Good-bye QueueLoader. Hello LoaderMax.
A few years ago while I was making the switch from Actionscipt 2 to Actionscript 3 I discovered the power of sequential loading. To illustrate what sequential loading IS NOT I want you to think of a website that you've been to and it seems like it takes way to long to view the next image or next bit of content. Or you go to a site and it takes the page forever to load and slowly all the images start to load and there's a bit or waiting. Well it's the waiting that drove me nuts. Even to this day if I go to some slick website and it takes seconds for each image to load when I click the next button I get angry.
The solution is sequential loading. Loading one asset (often images) after the other. The idea behind it is that you're internet connection will consume the first image quickly (with nothing else demanding it's attention), and then moving on the next, and the next, next…
To do this I've been using Hydrotik's QueueLoader. Which has served me well and has been the base of a lot of projects, but a new kid in the bulk loading crowd surfaced (Greensock's LoaderMax) a while back and I decided to give it a try. And I tried several times to see if I could utilize it but each time failed. Until recently. The other day I tweeted that I was a looser when it came to LoaderMax, and Jack Doyle (Mr. Greensock himself and the author of all things flashtastic) emailed me seeing how he could help. And help he did.
I sent him a base file using QueueLoader that is similar to all the files I've built using QueueLoaer and Jack sent me back a sleek file that replace QueueLoader with LoaderMax.
I know I'm a bit of a dummy and still code on the first frame of my fla's, but Jack showed me how to get LoaderMax running and working right. Below is the file he sent me using LoaderMax. I thought it might be useful to post the code and sample files here (for anyone searching the topic) and also to say thank you to Jack. I'm really looking forward to tapping into the power of LoaderMax.