Integrated preloader issue

Does ANYONE know of a good book or tutorial that talks about preloaders in depth, or could shed some light on the issue. I think it’s one of the most important things in Flash, yet everything on the web seems to only discuss parts of different ways to do it. I think a beautiful example of a great preloader is It seems as though it’s integrated in the main swf, It’s always in the same spot, always the same preloader. As opposed to the way I have done it …apreloader for every movie I call that shows in the movie to be called. I feel like there has to be a better way to do this. A way that would work like :

Thanks for any help!

All you need to do is set up a function which accepts arguements like this
first frame of the main timeline.
assessLoad = function (clip) {
var kbLoaded = Math.floor(clip.getBytesLoaded()/1024);
var kbTotal = Math.floor(clip.getBytesTotal()/1024);
percent = kbLoaded/kbTotal;
//your animation movement code here
percent_txt.text = Math.floor(percent*100)+"%";
if ((kbLoaded == kbTotal) && kbTotal>1) {
// dowhatever-maybe animation.gotoAndStop(1) ,animation._visible = false


//so for the main movie you would use
myInterval = setInterval(assessload, 50, this);

if you want something loading into a container mc
myButton.onPress = function(){
//maybe animation._visible =true etc
myInterval = setInterval(assessload, 50,myContainer);
or into a level
myButton2.onPress = function(){
myInterval = setInterval(assessload, 50,mylevel);
The best book i have seen on the subject is FlashMx Application &Design-Friends of Ed.

Thanks, I’ll play around with this!