Home
> FlashEff 1 (Discontinued version)
> Topic
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 | Registered: 14 years ago Posts: 1 |
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...
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 | Admin Registered: 15 years ago Posts: 310 |
Try to google that and I am sure you will find many answers. Bellow is just one of them:
[stackoverflow.com]
[stackoverflow.com]
Re: How to find stage width and height of SWF file? October 24, 2014 09:06PM | Registered: 9 years ago Posts: 3 |
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 | Registered: 9 years ago Posts: 1 |
Re: How to find stage width and height of SWF file? March 03, 2015 09:12PM | Registered: 9 years ago Posts: 2 |
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.
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 | Registered: 9 years ago Posts: 1 |
well explained instructions. thanks. topcarpicturez.com
Re: How to find stage width and height of SWF file? July 08, 2015 06:57AM | Registered: 8 years ago Posts: 12 |
It will be beneficial to anybody who utilizes it, including me. Very efficiently written information. Keep up the good work.
Batman Jacket
Batman Jacket
Sorry, you do not have permission to post/reply in this forum.