|
|
Search Tutorials
On the first key frame paste this code: createEmptyMovieClip("center", 0); center._x = Stage.width/2; center._y = Stage.height/2; focalLength = 400; cube = {}; cube.vertexList = []; cube.vertexList.push({x:-50, y:-50, z:50}); cube.vertexList.push({x:50, y:-50, z:50}); cube.vertexList.push({x:50, y:-50, z:-50}); cube.vertexList.push({x:-50, y:-50, z:-50}); cube.vertexList.push({x:-50, y:50, z:50}); cube.vertexList.push({x:50, y:50, z:50}); cube.vertexList.push({x:50, y:50, z:-50}); cube.vertexList.push({x:-50, y:50, z:-50}); cube.side = []; cube.side.push([0,1,2,3]); cube.side.push([2,1,5,6]); cube.side.push([1,0,4,5]); cube.side.push([5,4,7,6]); cube.side.push([0,3,7,4]); cube.side.push([3,2,6,7]); render = function(model) { if (transformMatrix) { for (var i = 0; i
|
||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||
|