I have a project where I want to use different pre-loaders from time to time so I wanted to know if there was a way I could have my project use an external swf for the pre-loader ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Absolutely, and in fact that’s a very common practice.
Your external preloader file just has to instantiate an instance of the Loader class, then load in your payload .swf. While the payload is loading in, you can listen for ProgressEvent.PROGRESS and use that to update some sort of a load bar or whatever. It would look something like this: