有趣的错误。我想你可以通过在全屏时自己缩放和定位内容来解决它。与设置 相比,这可能会影响性能fullScreenSourceRect
,但至少它应该可以工作。
一个示例(在您的文档类中使用):
protected var fakeFullScreenSourceRect:Rectangle;
public function Main() {
this.stage.scaleMode = StageScaleMode.NO_SCALE;
this.fakeFullScreenSourceRect = new Rectangle(30, 30, 400, 200);
this.stage.addEventListener(Event.RESIZE, handleResize);
}
protected function handleResize(e:Event):void {
if (this.stage.displayState == StageDisplayState.FULL_SCREEN || this.stage.displayState == StageDisplayState.FULL_SCREEN_INTERACTIVE) {
if (this.fakeFullScreenSourceRect) {
this.scaleX = this.stage.stageWidth / this.fakeFullScreenSourceRect.width;
this.scaleY = this.stage.stageHeight / this.fakeFullScreenSourceRect.height;
this.x = -this.fakeFullScreenSourceRect.x * this.scaleX;
this.y = -this.fakeFullScreenSourceRect.y * this.scaleY;
}
} else {
this.x = this.y = 0;
this.scaleX = this.scaleY = 1;
}
}