# as3 can't get main.swf stage.StageWidth from external swf ! u ve faced this !? Plea

**URL:** <https://forum.kirupa.com/t/as3-cant-get-main-swf-stage-stagewidth-from-external-swf-u-ve-faced-this-plea/290170>\
**Category:** Uncategorized\
**Created:** [June 10, 2009, 8:18pm UTC](https://forum.kirupa.com/t/as3-cant-get-main-swf-stage-stagewidth-from-external-swf-u-ve-faced-this-plea/290170 "2009-06-10T20:18:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahimsaraffier](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@ahimsaraffier](https://forum.kirupa.com/u/ahimsaraffier)\
**Post date:** [June 10, 2009, 8:18pm UTC](https://forum.kirupa.com/t/as3-cant-get-main-swf-stage-stagewidth-from-external-swf-u-ve-faced-this-plea/290170/1 "2009-06-10T20:18:39Z")

</div>

1. A main stage called main.swf with a link

2. When clicked it loads (addchild) an external swf

\*\* In this external swf i need to know the the size of the main (stage.stageWidth) but it keeps giving me the width of the loaded swf not the main  
\*\*

Please do you know how to work around this ?
