.swf opening up .swf and its document class!

I have one problem left! which i can’t seem to find the answer for.
I have a main.swf that should open up portfolio.swf and contact.swf.

Portfolio.swf opens up fine(as it does not have an .as attached to its document class)
Contact.swf does not open if I try to open it from main.swf(opens fine by itself)


contact.addEventListener(MouseEvent.MOUSE_DOWN, downContact);

function downContact(MouseEvent):void{
    var request:Loader = new Loader();
request.load(new URLRequest ("Contact.swf"));
loadMC.addChild(request)
gotoAndStop(2);
}

here is my contact code. As you see, the main.swf goes to frame 2(the buttons shrink for navigation throughout all the pages), and should load up contact.swf which has drawing.as as its document class. but I get this error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Drawing/::init()
at Drawing$iinit()

any help would be excellent. or if you made an external swf open up another .swf with actionscript attached to it, would be great.

edit: Fixed this, the class was opening early. used an addeventlistener and a removeEventListener in my class document, to call the class after it was loaded!