Dynamic stage size

Is there any way to change the stage size (width/height) while running ?

Example: I would like to pass the width and height of the swf file via querystring through browser, so when the swf loads up in browser, it will have the specific dimension.