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