Hi,
I would like to render a view using code on the timeline of a flash file.
Right now I am using the following code:
import away3d.containers.View3D;
import away3d.entities.Mesh;
import away3d.materials.ColorMaterial;
import away3d.primitives.SphereGeometry;
var view:View3D = new View3D();
addChild(view);
var sphereGeometry:SphereGeometry = new SphereGeometry(350);
var sphereMaterial:ColorMaterial = new ColorMaterial( 0xff0000 );
var sphereMesh:Mesh = new Mesh(sphereGeometry, sphereMaterial);
view.scene.addChild(sphereMesh);
view.render();
which renders nothing but when used in a DocumentClass it renders the Sphere no problem. I would greatly appreciate some advice on how to make it work when written on a flame on the timeline and no within a DocumentClass. A link to a tutorial would be ok as well but I have not found anything on it after extensive searches.
I attached the DocumentRoot class which was downloaded from a tutorial online.
Also like to know if possible when a book on Away3d 4 will come out.
Thank you.