2011/10/22

ActionScript 3 取得當前網域名稱

程式碼:
import flash.net.LocalConnection

var conn:LocalConnection = new LocalConnection();
var domainName:String = conn.domain;
trace( domainName );