Can’t get basic examples to show

Software: Away3D 4.x

bitmapdata, Newbie
Posted: 21 October 2011 10:44 AM   Total Posts: 24

First time posting.
I tried to get a basic away3d 4 example working.  And I know I set up playerglobal.swc and set player version to 11 and swf version to 13 and wmode to direct and all that stuff.  On enterframe it IS tracing the rotationY of this cube I create.  But it just isn’t showing visually. Not getting any errors.  I have a newer macbook pro and I am running flash builder 4.5 and was able to get the alternativa3d examples working. I have Flash debug player 11.0.1.152 installed.

On another note it seems like a lot of the older (jan, feb, march) examples for away3d 4.x online just don’t show visually anymore.  None of the jiglib examples with away3d 4.x show up at all.  The framerate counter will shows up but never the 3d models.  Why is that.
Here is the basic code I wrote which I got from John Linquist’s youtube video:

package
{
 import away3d
.containers.View3D;
 
import away3d.materials.ColorMaterial;
 
import away3d.materials.MaterialBase;
 
import away3d.primitives.Cube;
 
 
import flash.display.Sprite;
 
import flash.events.Event;
 
 
[SWF(framerate="60",backgroundColor="0")]
 
public class Away3dHouse extends Sprite
 {
  
private var view:View3D;
  private var 
cube:Cube;
  public function 
Away3dHouse()
  
{
   trace
('running');
   
view = new View3D();
   
addChild(view);
   var 
material:ColorMaterial = new ColorMaterial(0xFFFFFF);
   
   
cube = new Cube(material);
   
   
view.scene.addChild(cube);
   
   
addEventListener(Event.ENTER_FRAME,ef);
  
}
  
  
protected function ef(e:Event):void
  {
   cube
.rotationY += 10;
  
}
 }
   

John Brookes, Moderator
Posted: 21 October 2011 12:17 PM   Total Posts: 732   [ # 1 ]

view.render()

in your enter frame.

   

bitmapdata, Newbie
Posted: 21 October 2011 12:21 PM   Total Posts: 24   [ # 2 ]

grin
Oy Vey.
Thank you.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X