This is cube
//http://swf-flash.blogspot.com/2013/04/understanding-3d-animation-of-cube.html
public function makeContainer(posX:Number, posY:Number):ObjectContainer3D {
var con:ObjectContainer3D = new ObjectContainer3D();
var c3:ObjectContainer3D = new ObjectContainer3D();
var geometry:Geometry = new Geometry();
var subGeometry:SubGeometry = new SubGeometry();
var s:Number = 100;
var vertexData:Vector.<Number> = Vector.<Number>([s, s, s, s, s, -s,
-s, s, -s, s, s, s, -s, s, -s, -s, s, s, -s, -s, -s, -s, -s, s, -s,
s, s, -s, -s, -s, -s, s, s, -s, s, -s, s, -s, -s, s, -s, s, -s, -s,
-s, s, -s, s, -s, -s, s, -s, -s, -s, s, s, -s, s, s, s, s, -s, -s,
s, s, s, s, -s, s, s, -s, -s, s, s, s, -s, s, s, s, -s, s, -s, s, s,
-s, -s, s, s, -s, s, s, s, -s, s, -s, -s, -s, -s, -s, s, s, -s, -s,
-s, -s, -s, s, -s]);
var uvData:Vector.<Number> = Vector.<Number>([0, 0.5, 1 / 3, 0.5,
1 / 3, 1, 0, 0.5, 1 / 3, 1, 0, 1, 1 / 3, 0.5,
2 / 3, 0.5, 2 / 3, 1, 1 / 3, 0.5, 2 / 3, 1, 1 / 3, 1, 1 / 3,
0, 2 / 3, 0, 1 / 3, 0.5, 2 / 3, 0, 2 / 3, 0.5, 1 / 3, 0.5, 2 / 3, 0.5,
1, 0.5, 2 / 3, 1, 1, 0.5, 1, 1, 2 / 3, 1, 2 / 3, 0, 1, 0, 2 / 3, 0.5,
1, 0, 1, 0.5, 2/3, 0.5, 0, 0, 1/3, 0, 1/3, 0.5, 0, 0, 1/3, 0.5, 0, 0.5]);
var indexData:Vector.<uint> = new Vector.<uint>();
for (var i:int = 0; i < 36; i++) indexData.push(i);
subGeometry.updateVertexData(vertexData);
subGeometry.updateUVData(uvData);
subGeometry.updateIndexData(indexData);
subGeometry.autoDeriveVertexNormals = true;
subGeometry.autoDeriveVertexTangents = true;
geometry.subGeometries.push(subGeometry);
var cM:Mesh = new Mesh(geometry, blaMaterial);
c3.addChild(cM);
con.addChild(c3); con.positi Vector3D(posX, 0, posY);
return con;
}