Need help on preloader

I’m trying to do a simple preloader. I’m using the tutorials from http://www.kirupa.com/developer/mx/percentage_loader.htm. The problem is, how do i know whether it has loaded then it will play my animation?? Dont really understand.Anyone can help me on this please??