Hi, away3d team ,
When i digged into the UVAnimationTest.as ,i found that:
import away3d.library.AssetLibrary;
import away3d.loaders.misc.AssetLoaderContext;
import away3d.loaders.parsers.Parsers;
.................................
[Embed(source = "/../embeds/uveyes/eyes.3ds",mimeType = "application/octet-stream")]
private var MeshData:Class;
.................................
AssetLibrary.enableParsers(Parsers.ALL_BUNDLED);
AssetLibrary.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onComplete);
AssetLibrary.parseData(MeshData);
..................................
private function onComplete(ev : LoaderEvent):void
{
_eyes = Mesh(AssetLibrary.getAsset('Cylinder'));
_eyes.material = _mat;
_eyes.scale(100);
_eyes.rotationY = 180;
_view.scene.addChild(_eyes);
}
I was just a little confused about such event style, it seems not a logical and elegant event style