Which actionscript version you are using? If you are using AS 3.0 then try this code -

stage.displayState = StageDisplayState.FULL_SCREEN;

Hope it helps. Thanks.