hi guys,
Im trying to load series of external Swfs into a Movieclip on stage. The swf are 800 x 600 in dimension whereas as the container is 400 X 400.
Whenever i try to load the external swf in the container,the container takes the size of the loaded swf instead of 400 x 400 .How can i overcome this?
I want to any swf loaded into the container to be 400 x 400
I'm using the following code :
var movLoad:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myListener.onLoadInit = function(thisMc:MovieClip) {
thisMc._height = 400;
thisMc._width = 400;
};
movLoad.addListener(myListener);
btnNext.onPress = function()
{
loadSwf("myswf_file1.swf");//will change name accordingly.
}
function loadSwf(swf)
{
movLoad.loadClip(swf, container_mc);
// myswf1.swf is a swf which could be of any size .
// container_mc is movieclip on stage.
//container_mc has dimension 400 x 400
}
thx amit