【问题标题】:do not want to open a new window in flash不想在 Flash 中打开新窗口
【发布时间】:2009-03-10 19:14:05
【问题描述】:

我有一个链接到 Dreamweaver 中页面的 Flash 主页。在线时,我不希望在定向到 url 时打开新窗口。 (现在,我有一个动作脚本可以转到 URL,并打开一个新窗口)。有没有办法保持不变?

【问题讨论】:

    标签: flash window hyperlink


    【解决方案1】:

    你在使用navigateToURL吗?传递_self 作为第二个参数。请参阅文档:

    window:String (default = null) — 显示由请求参数指示的文档的浏览器窗口或 HTML 框架。您可以输入特定窗口的名称或使用以下值之一:

    * "_self" specifies the current frame in the current window.
    * "_blank" specifies a new window.
    * "_parent" specifies the parent of the current frame.
    * "_top" specifies the top-level frame in the current window.
    

    如果您没有为此参数指定值,则会创建一个新的空窗口。在独立播放器中,您可以指定新的(“_blank”)窗口或命名窗口。其他值不适用。

    【讨论】:

      【解决方案2】:

      只需将链接目标设置为_self

      【讨论】:

        【解决方案3】:

        尝试:

        getUrl("http://theurl.com/page.html", "_self");
        

        【讨论】:

          猜你喜欢
          • 2014-03-24
          • 1970-01-01
          • 2013-11-16
          • 1970-01-01
          • 1970-01-01
          • 2015-09-04
          • 2014-07-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多