Loader class working in Flash, but not in browser

Hi, all- I’m running into a problem loading an external swf. Check it out here: http://www.brownshoemedia.com/staging

If it’s working right, the top and bottom red areas should end up looking exactly the same.

I have “init.swf” loading “cc_home.swf” into a container. When successful, it should fade up (that animation is in “init.swf”) and then load the white text (cc_home.swf). What you’re seeing on that page is init.swf on top, and cc_home.swf down below.

When I test init.swf directly from Flash, it works fine. In the browser, though, it doesn’t load the movie.

Here’s the code I’m using in “init.swf” to load cc_home.swf (which I got from Kirupa):


var mycontainer:MovieClip;
var myloader:Loader = new Loader();
var urlrequest:URLRequest = new URLRequest(“cc_home.swf”)
myloader.load(urlrequest);

myloader.contentLoaderInfo.addEventListener(Event.INIT, loaded);

function loaded(e):void{
mycontainer = e.target.content;
addChild(mycontainer);
mycontainer.play();
//do your stuff…
}


Any idea why it would work in Flash but not in the browser? (yes, I checked- it’s the most recent Flash Player)