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 01:19PM
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 10:18AM
Try to google that and I am sure you will find many answers. Bellow is just one of them:

[stackoverflow.com]
Re: How to find stage width and height of SWF file?
October 24, 2014 09:06PM
I am interested in this subject matter and would like to explore out some more information as my colleague need information on this topic. Do you have any other post on this? Cheers! anti-aging products
Re: How to find stage width and height of SWF file?
October 27, 2014 02:54PM
Your article has helped me to understand this subject on a different level. I would like to appreciate your efforts for exploring this issue. Thank you for your information.
freevpn



Edited 1 time(s). Last edit at 10/27/2014 02:55PM by user1630899.
Re: How to find stage width and height of SWF file?
March 03, 2015 09:12PM
I have been studying this topic for a long time. You have provided great information in your post and some things I have not seen in other content I have read by others. buy google followers



Edited 1 time(s). Last edit at 03/03/2015 09:13PM by user1635078.
Re: How to find stage width and height of SWF file?
March 16, 2015 03:33PM
well explained instructions. thanks. topcarpicturez.com
Re: How to find stage width and height of SWF file?
July 08, 2015 06:57AM
It will be beneficial to anybody who utilizes it, including me. Very efficiently written information. Keep up the good work.
Batman Jacket
Sorry, you do not have permission to post/reply in this forum.