
|
<p>hi,</p>
<p>i had a scenario where i removed a loaded ILoader from an AssetLoader and added it to a new AssetLoader.</p>
<p>the problem is that the new loader.id is not added to the _loadedIds.</p>
<p>AssetLoader.as:</p>
<p>override public function remove(id : String) : ILoader </p>
<p>you check<br />
…<br />
if(loader.loaded) _loadedIds.splice(_loadedIds.indexOf(id), 1);<br />
…</p>
<p>but there is no check in the addLoader function:<br />
like </p>
<p>override public function addLoader(loader : ILoader) : void<br />
if(loader.loaded) _loadedIds.push(loader.id);</p>
<p>best,<br />
marc
</p>
|
 Matan Uberstein
|
|
 Matan Uberstein
|
|