templates/as3/org/rubyforge/dango/DangoClientFramework.as in dango_generator-0.4.2 vs templates/as3/org/rubyforge/dango/DangoClientFramework.as in dango_generator-0.4.3
- old
+ new
@@ -58,10 +58,13 @@
private var server_host:String;
private var server_port:int;
private var is_debug:Boolean = false; // Debugモードかどうかのフラグ
private var disp_obj:DisplayObject;
+ private var policy_file_protocol:String;
+ private var policy_file_host:String;
+ private var policy_file_path:String;
public var sid:int;
private var has_sid:Boolean = false; // sidを取得完了しているかどうか
/**
@@ -78,19 +81,22 @@
// 設定ファイルの読み込み
if(config.hasOwnProperty("server_host")){ server_host = config.server_host; }
if(config.hasOwnProperty("server_port")){ server_port = config.server_port; }
if(config.hasOwnProperty("debug" )){ is_debug = config.debug; }
if(config.hasOwnProperty("disp_obj" )){ disp_obj = config.disp_obj; }
+ if(config.hasOwnProperty("policy_file_protocol")){ policy_file_protocol = config.policy_file_protocol; }
+ if(config.hasOwnProperty("policy_file_host" )){ policy_file_host = config.policy_file_host; }
+ if(config.hasOwnProperty("policy_file_path" )){ policy_file_path = config.policy_file_path; }
// is_debug = true;
if(disp_obj){
trace("disp_obj: " + disp_obj);
frame_rate = disp_obj.stage.frameRate; // フレームレート
}
- var policy_file_protocol:String = config.policy_file_protocol;
- var policy_file_host:String = config.policy_file_host;
- var policy_file_path:String = config.policy_file_path;
+// var policy_file_protocol:String = config.policy_file_protocol;
+// var policy_file_host:String = config.policy_file_host;
+// var policy_file_path:String = config.policy_file_path;
// 環境情報を出力
if(is_debug){ trace("flash player: " + Capabilities.version); }
if(is_debug){ trace("isDebugger: " + Capabilities.isDebugger); }
if(is_debug){ trace("language: " + Capabilities.language); }