templates/as3/org/rubyforge/dango/DangoClientFramework.as in dango_generator-0.0.38 vs templates/as3/org/rubyforge/dango/DangoClientFramework.as in dango_generator-0.0.39

- old
+ new

@@ -61,11 +61,11 @@ server_port = config.server_port; // is_debug = config.debug; is_debug = true; var policy_file_protocol:String = config.policy_file_protocol; - var policy_file_port:uint = config.policy_file_port; +// var policy_file_port:uint = config.policy_file_port; var policy_file_path:String = config.policy_file_path; // Event送出用 dispatcher = new EventDispatcher(this); @@ -92,15 +92,17 @@ socket.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler, false); socket.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler, true); trace("registered event handling."); // ポリシーファイルの読み込み - var url_load_policy_file:String; -// url_load_policy_file = "xmlsocket://" + server_host + ":" + server_port; -// url_load_policy_file = "http://aiarebaba.hi-fi-net.com/crossdomain.xml"; - url_load_policy_file = "http://" + server_host + policy_file_path; - trace("url_load_policy_file=" + url_load_policy_file); - Security.loadPolicyFile(url_load_policy_file); + if(policy_file_protocol){ + var url_load_policy_file:String; +// url_load_policy_file = "xmlsocket://" + server_host + ":" + server_port; +// url_load_policy_file = "http://aiarebaba.hi-fi-net.com/crossdomain.xml"; + url_load_policy_file = "http://" + server_host + policy_file_path; + trace("url_load_policy_file=" + url_load_policy_file); + Security.loadPolicyFile(url_load_policy_file); + } // 接続 try{ trace("connectiong... host=" + server_host + " port=" + server_port); socket.connect(server_host, server_port);