【问题标题】:How to show close button on top of stage webview in Flex stagewebview for facebook如何在 Facebook 的 Flex stagewebview 中的舞台 webview 顶部显示关闭按钮
【发布时间】:2013-06-27 00:02:20
【问题描述】:

我有 Flex AIR 应用程序,它使用 StageWebView 加载 facebook 登录窗口。我想向 stageWebView 添加关闭按钮。 stageWebView 是否有任何本机功能可以在 StageWebView 顶部添加关闭按钮? 我添加了关闭按钮,但它没有出现在 StageWebView 之上,因为我们无法在 StageWebView 之上添加任何内容。

【问题讨论】:

    标签: actionscript-3 apache-flex air stagewebview


    【解决方案1】:

    您不能在 StageWebView 上方添加任何内容。解决方法是将视口从屏幕顶部向下放置 50 像素,并在 Flash 阶段(如果您使用 Starling,则为 Starling 阶段)添加一个关闭按钮。

    例如对于 iPad,你可以使用类似的东西:

    _stageWebView.viewPort = new Rectangle(0, 50, 1024,718);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-11-02
      • 2010-12-26
      • 1970-01-01
      • 2014-02-27
      • 2016-08-24
      • 2016-07-27
      • 2021-07-14
      • 2015-11-25
      相关资源
      最近更新 更多