Rhzhi.Net 主页 | 访问新版
rhzhi.net
网站首页 | 软件新闻 | 操作系统 | 工具软件 | 办公软件 | 网站设计 | 组网专栏 | 平面设计 | 多 媒 体 | 程序开发 | 硬件资料 | 聊天软件
栏 目 索 引
首页 -> 网站设计-> Flash-->文章正文
FLASH_3D教程——从头开始
eNet
2005-8-11 文/kianxin




//附录一:

/*function create_planes(){

depth=0;

plane1.clear();

plane1.beginFill(0xAB548B,100);

plane1.lineStyle(3,0xFF0000,100);

plane1.moveTo(p_node[5].x,p_node[5].y);

plane1.lineTo(p_node[8].x,p_node[8].y);

plane1.lineTo(p_node[7].x,p_node[7].y);

plane1.lineTo(p_node[6].x,p_node[6].y);

plane1.lineTo(p_node[5].x,p_node[5].y);

depth=node[8].z+node[7].z+node[6].z+node[5].z;

depth=depth/(-4);

plane1.swapDepths(depth);

amount=depth/50*100+15;

//new Color(plane1).setTransform({ra:amount,ga:amount,ba:amount,aa:amount});

new Color(plane1).setTransform({ra:amount,ga:amount,ba:amount});

depth=0;

plane2.clear();

plane2.beginFill(0x808080,100);

plane2.lineStyle(3,0xFF0000,100);

plane2.moveTo(p_node[1].x,p_node[1].y);

plane2.lineTo(p_node[2].x,p_node[2].y);

plane2.lineTo(p_node[3].x,p_node[3].y);

plane2.lineTo(p_node[4].x,p_node[4].y);

plane2.lineTo(p_node[1].x,p_node[1].y);

depth=depth+node[4].z+node[3].z+node[2].z+node[1].z;

depth=depth/(-4);

plane2.swapDepths(depth);

amount=depth/50*100+15;

new Color(plane2).setTransform({ra:amount,ga:amount,ba:amount});

depth=0;

plane3.clear();

plane3.beginFill(0x8A0FF0,100);

plane3.lineStyle(3,0xFF0000,100);

plane3.moveTo(p_node[1].x,p_node[1].y);

plane3.lineTo(p_node[2].x,p_node[2].y);

plane3.lineTo(p_node[6].x,p_node[6].y);

plane3.lineTo(p_node[5].x,p_node[5].y);

plane3.lineTo(p_node[1].x,p_node[1].y);

depth=depth+node[1].z+node[2].z+node[6].z+node[5].z;

depth=depth/(-4);

plane3.swapDepths(depth);

amount=depth/50*100+15;

new Color(plane3).setTransform({ra:amount,ga:amount,ba:amount});

depth=0;

plane4.clear();

plane4.beginFill(0xE61A48,100);

plane4.lineStyle(3,0xFF0000,100);

plane4.moveTo(p_node[2].x,p_node[2].y);

plane4.lineTo(p_node[3].x,p_node[3].y);

plane4.lineTo(p_node[7].x,p_node[7].y);

plane4.lineTo(p_node[6].x,p_node[6].y);

plane4.lineTo(p_node[2].x,p_node[2].y);

depth=depth+node[2].z+node[3].z+node[7].z+node[6].z;

文章页数:[1] [2] [3] [4] [5] [6] [7] 



相关文章
打印此页 投稿与建议 返回顶部
关于我们 - 联系方式 - 合作伙伴 - 网站大事记 - 网站地图 - 我要投稿
Copyright © 1997-2008 先创网 All Rights Reserved.
先创科技 版权所有