【问题标题】:Strange Bar Overlayed on Flex InterfaceFlex界面上覆盖的奇怪条
【发布时间】: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


【解决方案1】:

尝试设置

showStatusBar="false"

在 WindowedApplication 中。

【讨论】:

  • @Fuller - 首先,'showStatusBar="false"' 是在 MXML 中,而不是在 AS3 中。 ActionScript 版本是“showStatusBar = false;”。但是,您可能是对的,这不是问题,因为我已经在您的代码中看到了另一个问题。即,您正在全屏缩放和调整窗口大小。缩放时会更改“宽度”和“高度”属性,这意味着上面的代码将乘以 2x newScale。另外,您能否尝试将 WindowedApplication 的“背景颜色”设置为白色以外的其他颜色(默认),以检查您是否只是看到背景。
  • 好的,很抱歉回复晚了。状态栏在隐藏时会移除屏幕底部大约一半的状态栏。现在我认为剩下的部分是一个扩展问题。我会调查的。我没有让界面分辨率独立,而是决定将内容缩放到屏幕大小,导致了这个故障。
猜你喜欢
  • 1970-01-01
  • 2020-08-02
  • 1970-01-01
  • 2020-12-04
  • 2015-10-07
  • 2021-06-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多