Прочитал вот эту статью.
http://shaman4d.blogspot.com/2010/10...iva-3d_30.html
Всё заработало.
Вот код
package{
import alternativa.engine3d.containers.ConflictContainer;
import alternativa.engine3d.core.Camera3D;
import alternativa.engine3d.core.View;
import alternativa.engine3d.materials.FillMaterial;
import alternativa.engine3d.materials.TextureMaterial;
import alternativa.engine3d.primitives.Box;
import flash.display.MovieClip;
import flash.display.BitmapData;
import flash.display.Sprite;
public class Main extends MovieClip{
[Embed (source = "texture.jpg")] private var texture:Class;
public function Main():void{
var container:ConflictContainer = new ConflictContainer();
var camera:Camera3D = new Camera3D();
camera.view = new View(300,300);
addChild(camera.view);
container.addChild(camera);
camera.x = -300;
camera.y = -50;
camera.z = 100;
camera.rotationX = -1.8;
camera.rotationZ = -1.4;
var box:Box=new Box();
var material:TextureMaterial = new TextureMaterial(new texture().bitmapData);
box.setMaterialToAllFaces(material);
container.addChild(box);
camera.render();
}
}
}