hi,
i am really new to away3d. i have tried the example but i can not get it work. Here is the code.
package
{
import away3d.containers.Scene3D;
import away3d.containers.View3D;
import away3d.primitives.Sphere;
import flash.text.StaticText;
import flash.text.TextField;
import flash.display.Sprite;
import flash.events.Event;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
public class Basic01 extends Sprite
{
private var scene:Scene3D;
private var view:View3D;
private var sphere:Sphere;
private var textField:TextField;
public function Basic01()
{
scene = new Scene3D();
view = new View3D(scene);
view.backgroundColor = 0xFFEEEE;
this.stage.addChild(view);
sphere = new Sphere();
sphere.x = 100;
sphere.y = 100;
sphere.radius = 50;
view.scene.addChild(sphere);
textField = new TextField();
textField.x = 50;
textField.y = 100;
textField.appendText(“Hello world”);
this.stage.addChild(textField);
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
private function onEnterFrame(ev:Event):void
{
sphere.roll(1);
view.render();
}
}
}
When i test the project. The view background color is correct.
The text field is displayed correctly both text and position.
But for the sphere, it never shows up. What have i done wrong?
I use FlashDevelop 4.0, Flex SDK 4.6.0(installed by FlashDevelop) and
away3d-core-fp11-f71921f.
Thanks.