Skip to content
April 13, 2011 / Danii Oliver

Implementing custom AS3 class Load File

I made a custom Load SWF class. It’s kept adjacent to the and requires vary little code to implement.
The class contains the event listeners and handlers for begin, progress, complete, and destroy. Thus, lessing the amount of code I need to write each time I need it.
Here it is in ActionScript 3.0
package {
import LoadFile;
import flash.display.Sprite;
import flash.display.Loader;

public class Main extends Sprite {

private static const SWF_URL: String = "SWFFile.swf";

private var loadfile:LoadFile;
private var loadee:MovieClip;

public function Main() {
loadfile = new LoadFile(SWF_URL);
loadee = MovieClip(;



Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: