I don’t understand how to use the AssetLibrary in Away3D 4.0.9 Gold.
The example Intermediate_LightProbes do not compile with Away3D 4.0.9 Gold
In particular i don’t understand the logic of the addEventListener method which arguments are described in the doc as
public static function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
instead of something like this as used in the example Intermediate_LightProbes
AssetLibrary.addEventListener(AssetEvent.ASSET_COMPLETE, onAssetComplete);
Why the following code, which is syntaxly valid, does not load any object (the var mesh is always null) ?
AssetLibrary.enableParser(AWDParser);
AssetLibrary.addEventListener('AssetComplete',onAssetComplete);
AssetLibrary.addEventListener('RessourceLoad', onRessourceLoaded);
AssetLibrary.load( new URLRequest('myObject.AWD'));
var mesh : Mesh = Mesh(AssetLibrary.getAsset('MyObject001'));
addChild(mesh);