StageScaleMode and StageAlign problems

I previously had all my AS3 code on the timeline, but I moved it to an external .as file yesterday. Since then I have been unable to use:
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

I get the following errors:
1120: Access of undefined property StageScaleMode
1120: Access of undefined property StageAlign

How can I resolve this?


Nevermind. 2 hrs trying to figure it out and I solved it as soon as I posted this.