Scenario:
I load several assets via AssetLibrary.load() at the same time and I use the same method to listen to, say AssetEvent.MESH_COMPLETE events.
When loaded I want them to be stored in my AssetLibrary via addAsset, but I don´t know what I´ve loaded. I thought well I could use _namespace via event.asset.assetNamespace but thats not really what namespace is intended to be used for, right?
So what would be the proper way to do it?
Some code to get the idea…
var ldr:AssetLoaderToken=AssetLibrary.load(new URLRequest("mesh.3ds"),new AssetLoaderContext(),"bla",new Max3DSParser());
var ldr1:AssetLoaderToken=AssetLibrary.load(new URLRequest("mesh1.3ds"),new AssetLoaderContext(),"bla1",new Max3DSParser());
var ldr2:AssetLoaderToken=AssetLibrary.load(new URLRequest("mesh2.3ds"),new AssetLoaderContext(),"bla2",new Max3DSParser());
protected function test(event:AssetEvent):void
{
switch(event.asset.assetNamespace)
{
case "bla":
case "bla1":
}
}