SWF Stage size in browser

Hello,

I am writing an app that, when loaded byt the HTML, could be any size. For example, using SWFObject and the following line:

swfobject.embedSWF(“Untitled-1.swf”, “SMHSWF”, “500”, “500”, “10”, “expressInstall.swf”, null, params);

The problem is I’m having some difficulty finding the size once the SWF is loaded. I’ve tried the following:

stage.width/height
stage.stageWidth/stageHeigth
I tried a AddedToStage event

Different combinations return either 0 or the original size when the SWF was compiled.

take care,
lee