AS3 - Setting the stageWidth and stageHeight

Hi,

I wish to set the height and width of the stage to 1,000 pixels by 1,000 pixels but my current code is not changing these properties of the stage.

note: I am compiling this AS3 with the Flex 2.0.1 SDK mxmlc.exe AS3 compiler.

My current code is:

[COLOR=Red]package {
[/COLOR][INDENT][COLOR=Red] import flash.display.
;*

[/COLOR] [COLOR=Red]* public class ExampleApp extends MovieClip*
[/COLOR] [COLOR=Red]{[/COLOR][INDENT][COLOR=Red]// constructor
[/COLOR] [COLOR=Red]public function ExampleApp() *
[/COLOR] [COLOR=Red]
{[/COLOR][INDENT][COLOR=Red] // change stage parameters*
[/COLOR] [COLOR=Red]* stage.stageHeight = 1000;*
[/COLOR] [COLOR=Red]* stage.stageWidth = 1000;*
[/COLOR] [COLOR=Red]* stage.showDefaultContextMenu = false;*

[/COLOR] [COLOR=Red]* // add a sample red square to the display list*
[/COLOR] [COLOR=Red]* var _shpSquare:Shape = new Shape();*
[/COLOR] [COLOR=Red]* _shpSquare.graphics.beginFill( 0xFF0000 );*
[/COLOR] [COLOR=Red]* _shpSquare.graphics.drawRect( 0, 0, 100, 100 );*
[/COLOR] [COLOR=Red]* _shpSquare.graphics.endFill();*

[/COLOR] [COLOR=Red]* addChild( _shpSquare );*
[/COLOR] [/INDENT][/INDENT][INDENT][COLOR=Red]* }*
[/COLOR] [/INDENT][COLOR=Red]* }*
[/COLOR] [/INDENT][COLOR=Red]* }*[/COLOR]

Any ideas ?

(note that the line of code to turn the default context menu is working ok)

I only want to set the height and width of the stage once in my application.

Cheers,