2012-01-19 6 views
0

BulkLoaderを使用して画像、SWF、XMLなどをゲームに読み込んでいます。インターネットからの読み込み時にBulkLoaderの動作が変化する

ローカルに作業している場合、LoadingItemcontentプロパティは、資産の種類に応じて、常に良いです:Bitmapそれはイメージだ場合、MovieClipそれはSWFだ場合など

私は同じswfファイルをテストしますが、下localhost、またはonlineの場合、contentプロパティは常にLoaderオブジェクトです。

これは正常ですか?私はパラメータなどを紛失していますか?

答えて

0

OK、同じ問題を抱えているもののために - ImageLoader、57行:基本的に

override public function onCompleteHandler(evt : Event) : void { 
    try{ 
     // of no crossdomain has allowed this operation, this might 
     // raise a security error 
     _content = loader.content; 
     super.onCompleteHandler(evt); 
    }catch(e : SecurityError){ 
     // we can still use the Loader object (no dice for accessing it as data 
     // though. Oh boy: 
     _content = loader; 
     super.onCompleteHandler(evt); 
     // I am really unsure whether I should throw this event 
     // it would be nice, but simply delegating the error handling to user's code 
     // seems cleaner (and it also mimics the Standar API behaviour on this respect) 
     //onSecurityErrorHandler(e); 
    } 

}; 

SecurityErrorLoadercontentプロパティを設定することになる、(静かにかかわらず)で発生したことを何が起こっていますかLoader.contentではなく

負荷する前にSecurity.loadPolicyFile()を加えて固定しました。

関連する問題