flex跳转

导入类:
        import flash.net.URLRequest;
        import flash.net.navigateToURL;

关闭当前浏览器:

                        var url:URLRequest = new URLRequest("javascript:window.close()");
                        navigateToURL(url,"_top");

                        (注意:要在服务器上测试,否则会报安全沙箱冲突);

在浏览器上跳转页面

                       navigateToURL(new URLRequest("http://www.baidu.com"),"_top");

打开一个新的浏览器:

                       var request:URLRequest = new URLRequest("http://www.baidu.com/);
                       navigateToURL(request);

你可能感兴趣的:(JavaScript,.net,浏览器,Flex,Flash)