通信がうまくいかない時

crossdomainが関係して、
通信がうまくいかない時、このscriptを書いてみる。
(swfの読み込みに関するもの)

as2
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");

as3
import flash.system.Security;
Security.allowDomain("*");
Security.allowInsecureDomain("*");

また、読み込まれるswfが
tweenを使用している場合は、
読み込まれるswfのrootに下記を記述する事でtweenが正常に動作する。
this._lockroot = true;
  
「/」階層に「crossdomain.xml」を置く





 
[全て許可:]
[HTTPSに接続:]
[ポート制限:]

また、もしルートディレクトリにcrossdomain.xmlを置けない場合は、
読込先を下記の様にflash側で設定する

System.security.loadPolicyFile('http://xxx.com/xxx/crossdomain.xml');
 
追記
player10にてセキュリティーに関する変更がありました。
詳細・対応方法は下記を参照
http://d.hatena.ne.jp/cf-note/20081015