从 Flex 3 获取当前页面的 URL? [英] Get URL of current page from Flex 3?

查看:34
本文介绍了从 Flex 3 获取当前页面的 URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Flex 中确定当前页面的 URL?

How do I determine the URL of the current page from within Flex?

推荐答案

使用 ExternalInterface (flash.external.ExternalInterface),可以在浏览器中执行 Javascript.知道这一点,你可以打电话

Using ExternalInterface (flash.external.ExternalInterface), you can execute Javascript in the browser. Knowing this, you can call

ExternalInterface.call("window.location.href.toString");

获取当前网址(请注意,这将是页面网址而不是 .swf 网址).

to get the current URL (note that this will be the page url and not the .swf url).

科恩

这篇关于从 Flex 3 获取当前页面的 URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆