# Using stage properties when loader from a loader

**URL:** https://forum.kirupa.com/t/using-stage-properties-when-loader-from-a-loader/278649
**Category:** Uncategorized
**Created:** [January 3, 2009, 3:17am UTC](https://forum.kirupa.com/t/using-stage-properties-when-loader-from-a-loader/278649 "2009-01-03T03:17:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![arosemena](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@arosemena](https://forum.kirupa.com/u/arosemena)
#### Post date: [January 3, 2009, 3:17am UTC](https://forum.kirupa.com/t/using-stage-properties-when-loader-from-a-loader/278649/1 "2009-01-03T03:17:19Z")

</div>

im doing a preloader that creates a var of the type loader and then loads another swf and add it to the stage with addChild, the problem is that the loaded swf cannot access stage properties and if i try to use them i get a #1009 runtime error, heres the code

## ----------PRELOADER----------- var l:Loader = new Loader(); l.contentLoaderInfo.addEventListener(Event.COMPLETE, done); l.load(new URLRequest(“test.swf”)); function done(e:Event) { addChild(l); }

## and heres the test swf that is very simple --------- test.swf ------------- var N:Number = stage.stageWidth; trace(N);

Hope someone can help this is killing me x.x
