CGArt-中国CGer中的绿色家园
首页 信息动态 原创排行 互动教程 资源千寻 CG人才 CGArt杂志 艺术设计 CG画廊 CG论坛 酷站欣赏 CG搜索 会员中心
Flash AS轻松制作旋转可控立方体特效
来源:闪吧 作者:xfjia 编辑:浪漫的季节 发布时间:2007年05月25日 09:16:11

可以控制立方体的旋转:

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));
}

源文件下载:点击这里下载源文件

共有评论0条
更多评论..
作者信息 详细信息
评论人:
验证码:
内容:
 
about us advertisement publish conformity service cooperate associate link site map contact us help jump to the top of page