I am creating a portfolio website for myself and want to embed a swf that is a simple flash game into my main flash file. My problem is that when I use this code to put the swf into my main flash file it doesn't keep the proper swf dimensions and shows things that are outside of the stage. I can't seem to figure it out! Any help is much appreciated! Thanks.
Here's my code.(I'm using Flash CS3 with AS3.)
var my_Loader:Loader = new Loader();
var my_url:URLRequest=new URLRequest("piggybankgame.swf");
my_Loader.contentLoaderInfo.addEventListener(Event.COMPLETE, finishLoading); my_Loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
my_Loader.load(my_url);
function finishLoading(loadEvent:Event) { addChild(loadEvent.currentTarget.content); }