方法一:
【推荐使用】引用flash中的importflash.external.ExternalInterface这个接口,他能提供像jsp中window.location.href方法一样方便,Flex页面跳转主要代码为:
ExternalInterface.call("function() {
window.location.href='http://www.baidu.com';
}");
方法二:使用navigateToURL,主要方式如下:
var url:String = "http://www.baidu.com/";
var request:URLRequest = new URLRequest(url);
navigateToURL(request, '_self'); //在当前页面跳转
|
Flex 跳转URL
最新推荐文章于 2021-04-05 16:32:20 发布