flash的URL

导入类:

        import flash.net.URLRequest;
        import flash.net.navigateToURL;

关闭当前浏览器:

                        var http://www.cnblogs.com/midisong/admin/URLRequest = new URLRequest("javascript:window.close()");
                        navigateToURL(url,"_top");

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

打开一个新的浏览器:

                       var request:URLRequest = new URLRequest("http://oliwen.blog.163.com/blog/);
                       navigateToURL(request);

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/accp_fangjian/archive/2008/01/18/2050948.aspx

posted @ 2010-09-15 05:21  midisong  阅读(139)  评论(0编辑  收藏  举报