【发布时间】:2011-07-09 20:03:49
【问题描述】:
当我将我的 Flex 应用程序设置为在 FullScreen_Interactive 中运行时,只要我单击一个控件,这个栏就会出现在屏幕底部。它非常突兀,到目前为止已经出现在两台不同的计算机上。
它下面有很多纯白色,它至少覆盖了屏幕底部的 5-10%,它也挡住了控件。我显然从未制作/放置过这个东西,还有其他人遇到过这个吗?
追加:
protected function windowedapplication1_applicationActivateHandler(event:AIREvent):void
{
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
stage.addEventListener(KeyboardEvent.KEY_DOWN, stopesc);
//Scale to resolution size
var thisScreen:Screen = Screen.mainScreen;
var newScaleX:Number = thisScreen.visibleBounds.width / 1019 * 0.98;
var newScaleY:Number = thisScreen.visibleBounds.height / 680 * 0.98;
var newScale:Number = Math.min(newScaleX,newScaleY,1.5);
this.scaleX = newScale;
this.scaleY = newScale;
this.height = this.height * newScale;
this.width = this.width * newScale;
showStatusBar="false"
}
【问题讨论】:
-
很遗憾我的排名不够高——虽然我会附加一些初始化代码
标签: apache-flex air components flash-builder