PDA

View Full Version : Errors with StageScaleMode.NO_BORDER - please help



klevitt
March 8th, 2009, 01:07 PM
Hello,

I want my swf file to open on a standalone Flash player on my computer to fullscreen but with no borders.

I have tried using the StageScaleMode class but it keeps giving me an error. Below are two variations on how I've been trying to use it.

1)
import flash.display.StageScaleMode;

in constructor:
stage.StageScaleMode = "noBorder";

error:
1119: Access of possibly undefined property StageScaleMode through a reference with static type flash.display:Stage.

.ral:cr
March 8th, 2009, 01:13 PM
don't you read the help when you write code?

stage.scaleMode = StageScaleMode.NO_BORDER;

but to enter fullscreen you need to do:

stage.displayState = StageDisplayState.FULL_SCREEN;

klevitt
March 8th, 2009, 04:31 PM
don't you read the help when you write code?

stage.scaleMode = StageScaleMode.NO_BORDER;

but to enter fullscreen you need to do:

stage.displayState = StageDisplayState.FULL_SCREEN;

Yes, I always read the help when I write the code but this was confusing.

Thank you, that works!