Adding a SWF into a Scaled Container

Ok this is what I got



import flash.display.Stage;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;




var portRequest:URLRequest = new URLRequest("PictureViewer.swf");
 var portLoader:Loader = new Loader();
var myPort:DisplayObjectContainer = new DisplayObectContainer();


portLoader.load(portRequest);
myPort.addChild(portLoader);
 

myPort._width = 225;
myPort._height = 250
myPort._x = 284 ;
myPort._y = 40 ;


And what I am trying to do is make it so my SWF file “PictureViewer” loads into a scaled down container with the variables = myPort.

I keep getting back so many errors I don’t know where to start.

Does anyone know the exact or proper code to compile this? I figure its the simplest thing in the world, and I’m the biggest newb. :slight_smile:

Take care!