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

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

问题描述

我如何从Flex内确定当前页面的网址是什么?

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

推荐答案

使用ExternalInterface的(的flash.external.ExternalInterface <$ C C $>),你可以在浏览器中执行JavaScript。 知道了这一点,你可以叫

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

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

获取当前URL(注意,这将是网页的网址,而不是瑞士法郎URL)。

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

心连心

公园

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

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