Create a Preloader class in Actionscript 3