So, I have a main flash container move that loads in multiple swf files. I created a movieclip container in the main flash container that resizes and positions according to the stage height and width as follows:
swf_width=stage.stageWidth;
swf_height=stage.stageHeight;
new_container_height=swf_height;
mc_container.height=new_container_height;
mc_container.scaleX=mc_container.scaleY;
mc_container.x=stage.stageWidth / 2 - mc_container.width / 2;
This works fine if no graphics are off the stage in the loaded swfs. Otherwise if I have a scrolling menu and the buttons out width the containing mc it takes into account the masked content width and centers the movieclip accordingly throwing alignment off.
Is there a way to ignore masked content when getting stage width and height?