How to find stage width and height of SWF file?

Posted by udaysingh 
How to find stage width and height of SWF file?
August 18, 2010 08:19AM
Hello Experts,
I have a small issue in ActionScript 2.0. I want to know the stage width and height for external SWF file.
I used the following code:

var loader:MovieClip = _root.createEmptyMovieClip('loader', 1);
var obj:Object = new Object();
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.loadClip("external.swf",loader);
mcl.addListener(obj);

obj.onLoadInit = function(mc)
{
trace(mc._width);
trace(mc._height);
};

It's showing the whole animation's width and height but I want only stage width & height

How is it possible?

Thanks in advance for your comment...
Re: How to find stage width and height of SWF file?
October 18, 2010 05:18AM
Try to google that and I am sure you will find many answers. Bellow is just one of them:

[stackoverflow.com]
Sorry, only registered users may post in this forum.

Click here to login