Help me please, can file: AWD support animations of 3d max.?, sorry I speak spanish.
I use
//AWDataExporterAIR version 1.1, Away3D Flash 10, generated by Away3D
class load :
I following this tutorial:
http://www.adobe.com/devnet/flashplayer/articles/creating-games-away3d.html
package
{
import away3d.containers.View3D;
import away3d.events.LoaderEvent;
import away3d.loaders.Loader3D;
import away3d.loaders.parsers.Parsers;
import flash.display.Sprite;
import flash.events.Event;
import flash.net.URLRequest;
public class AwayAWD extends Sprite
{
private var view3D:View3D;
private var loader3D:Loader3D;
public function AwayAWD()
{
view3D = new View3D();
view3D.backgroundColor = 0x666666;
view3D.antiAlias = 4;
this.addChild(view3D);
this.addEventListener(Event.ENTER_FRAME, this_handlerEnterFrame);
Parsers.enableAllBundled();
loader3D = new Loader3D();
loader3D.addEventListener(LoaderEvent.RESOURCE_COMPLETE, loader3D_hanlderLoader_RecuerceComplete);
loader3D.addEventListener(LoaderEvent.LOAD_ERROR, loader3D_handlerLoader_LoadError);
loader3D.load(new URLRequest(“model/cube.awd”));
}
private function loader3D_hanlderLoader_RecuerceComplete(event:LoaderEvent):void{
this.view3D.scene.addChild(loader3D);
}
private function loader3D_handlerLoader_LoadError(event:LoaderEvent):void{
}
private function this_handlerEnterFrame(event:Event):void{
loader3D.rotationY = stage.mouseX - stage.stageHeight /2;
loader3D.rotationX = stage.mouseY - stage.stageWidth /2;
view3D.camera.y = 3 * (stage.mouseY - stage.stageHeight/2);
view3D.camera.lookAt(loader3D.position);
view3D.render();
}
}
}