代码改变世界

获得客户端地址端口等[转]

2010-07-08 22:31  宝宝合凤凰  阅读(251)  评论(0编辑  收藏  举报
var uri:URI = new URI(Application.application.url);
trace(uri.authority);//IP address of the server which hosts this flex application
trace(uri.port);
trace(uri.path);

UIR在这个库里:
http://as3corelib.googlecode.com/files/as3corelib-.92.1.zip