Help! Connecting/Loading swf files for website

Hello!

I’m a bit of a newbie at Flash and building my first website. I’ve built all the pages individually as different files and now I want to use AS to connect them all and link from my main page to the other files using buttons.

I thought I was on the right track with this code, but it returns an output error (both below). Can anybody help?

import flash.display.Loader;
import flash.events.MouseEvent;
import flash.net.URLRequest;

var myLoader:Loader=new Loader();
housebtn_btn.addEventListener(MouseEvent.CLICK, housepagecontent);
function housepagecontent(myevent:MouseEvent):void {
var myURL:URLRequest=new URLRequest(“FC Website - House.swf”);
myLoader.load(myURL);
addChild(myLoader);
};


TypeError: Error #1034: Type Coercion failed: cannot convert fl.controls::[email protected] to flash.display.MovieClip.
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at FCWebsite_fla::MainTimeline()


Thank you!!

Pixxie