How to set size (width,height) of externally loaded swf

Posted by Raj on Stack Overflow See other posts from Stack Overflow or by Raj
Published on 2010-05-07T06:14:23Z Indexed on 2010/05/07 6:18 UTC
Read the original article Hit count: 118

Filed under:
|
|

Hi,

I have loaded swf using following code,

var loader:Loader = new Loader();
loader.load(new URLRequest("XYZ.swf"));
addChild(loader);

How do I control height and width of this loaded swf.

I tried

var mc = MovieClip(loader.loaderContentInfo.content);
mc.width = 320;
mc.height = 240;

this gives null object error.

© Stack Overflow or respective owner

Related posts about swf

Related posts about height