当前位置:沸点梦工场 > 网页设计教程 > Flash教程 > 浏览文章

Flash制作旋转可控立方体

闪吧 2007年06月07日 【字体:
可以控制立方体的旋转:

http://www.68design.net/download/flash/20070524002.swf



cubeCenter = new point3d(0,0,0);
geom.addCube(cubeCenter, 80, 0xFFF2CC);

geom.addCube(cubeCenter, 20, 0xFFF2CC);
geom.addSolidCube(cubeCenter, 20, 0xC2B898, 30);
point1 = new point3d(-80,80,80);
point2 = new point3d(-80,80,-80);
point3 = new point3d(80,80,-80);
point4 = new point3d(80,80,80);
point5 = new point3d(-80,-80,80);
point6 = new point3d(-80,-80,-80);
point7 = new point3d(80,-80,-80);
point0 = new point3d(80,-80,80);
// attach a movie from the library and then add it
for (g=0; g<8; g++) {
attachMovie("glowball", "gb"+g, depth++);
mx3dInstance.addClip(eval("point"+g), eval("gb"+g));
}
源文件下载: 旋转的立方体mx3d.rar