public function AddedToStage():void
this.width = this.stage.width;
this.height = this.stage.height;
However, I would still like to know how to set the dimensions of the sub-swf from the parent swf - there may be times where I don't have control over the loaded swf so I can't add this code to it.
I can add the following event handler to my sub-swf:
I have found a workaround for my current problem.
and attach it to the addedToStage event of the application.