# Big problem

**URL:** <https://forum.kirupa.com/t/big-problem/204418>\
**Category:** Uncategorized\
**Created:** [October 19, 2006, 5:25pm UTC](https://forum.kirupa.com/t/big-problem/204418 "2006-10-19T17:25:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Search\_This\_com](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@Search\_This\_com](https://forum.kirupa.com/u/Search_This_com)\
**Post date:** [October 19, 2006, 5:25pm UTC](https://forum.kirupa.com/t/big-problem/204418/1 "2006-10-19T17:25:58Z")

</div>

Here’s my problem:

Make a movieclip 100 x 100 and place it off the stage. The default stage size for a swf is 550 x 400 px. Publish it, CTRL + ENTER and you get a swf at 550 x 400 and of course you cannot see your 100 x 100 movieclip that is off the stage.

But, now if you import that swf into another swf; what is its height and width? 100 x 100 is what it is. This is a problem if you are trying to then center the imported swf within your main swf.

My exact problem:

I have a main swf, its stage is 1024 x 768. I have another swf that will eventually get loaded into the main swf; its stage is also 1024 x 768. BUT, it has all sorts of stuff placed off the stage, thus giving it a 1074.9 x 1607 dimension. Not good, one would expect it to be 1024 x 768.

The below code wont work because of this. swfHolder\_mc Is the mc where the imported swf goes.

var stageWidth\_num:Number = Stage.width;  
var stageHeight\_num:Number = Stage.height;

var newX:Number = (stageWidth\_num/2) - (swfHolder\_mc.\_width/2);  
var newY:Number = (stageHeight\_num/2) - (swfHolder\_mc.\_height/2);

swfHolderMain\_mc.\_x = newX;  
swfHolderMain\_mc.\_y = newY;

help?
