# Accessing stage from a child swf

**URL:** <https://forum.kirupa.com/t/accessing-stage-from-a-child-swf/306125>\
**Category:** Uncategorized\
**Created:** [March 10, 2010, 2:50am UTC](https://forum.kirupa.com/t/accessing-stage-from-a-child-swf/306125 "2010-03-10T02:50:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rydonahue](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@rydonahue](https://forum.kirupa.com/u/rydonahue)\
**Post date:** [March 10, 2010, 2:50am UTC](https://forum.kirupa.com/t/accessing-stage-from-a-child-swf/306125/1 "2010-03-10T02:50:00Z")

</div>

Hey guys,

I am creating a fullscreen (no scale) site, so I am placing the position of my movieclips by referring the stage. Such as…

movieClip.x = stage.stageWidth / 2;

that code sets the x property of the movie clip fine when stand alone but when loaded into another swf it has trouble accessing the stage.

How can I access the height and width of the stage from a child swf? I have already tried both parent and root which give no errors, however they are not tracing proper values and are throwing everything in the wrong place

Any help is greatly appreaciated  
Ryan ![](http://www.flash-db.com/Board/Themes/classic/images/icons/modify_inline.gif)
