Hello. I have finally decided to learn Action Script 3 :) Yep, I know, I should do it before, but I like AS 2.0 so much :)
Anyway, I am starting to learn away3d and AS 3 at the same time, and some of the examples on your site do not works any more. Its not a big deal to fix them, but for the novice like me it do take some time. So if anybody interested - I am going to play with all examples and test if they work with latest away3d 2.2 engine. I will post fixed examples here, so you will be able to correct them. =============== http://away3d.com/examples.php?example=46&_searchterm=; =============== package { import flash.display.*; import flash.events.*; import away3d.containers.*; import away3d.primitives.*; import away3d.materials.*; public class HelloWorld extends Sprite { var view:View3D; var sphereA:Sphere; function HelloWorld() { stage.frameRate=60; addEventListener(Event.ENTER_FRAME,away3dloop); away3dcreate(); } function away3dcreate():void { addChild(view=new View3D({x:stage.stageWidth/2, y:stage.stageHeight/ 2})); sphereA=new Sphere({material:new WireColorMaterial()}); view.scene.addChild(sphereA); } function away3dloop(event:Event):void { view.camera.moveTo (sphereA.position.x,sphereA.position.y,sphereA.position.z); view.camera.rotationY=mouseX/2; view.camera.rotationX=mouseY/2; view.camera.moveBackward(500); sphereA.rotationY+=1; view.render(); } } } //sphereA=new Sphere({material:new WireColorMaterial(0xAA33DD),z:1, segmentsW:8,segmentsH:8,radius:100,x:0, bothsides:false});
