?? flash_3d教程——閃吧 flash8.htm
字號:
<DIV><FONT face=宋體>/*function create_planes(){</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>depth=0;</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane1.clear();</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane1.beginFill(0xAB548B,100);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane1.lineStyle(3,0xFF0000,100);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane1.moveTo(p_node[5].x,p_node[5].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane1.lineTo(p_node[8].x,p_node[8].y);
</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane1.lineTo(p_node[7].x,p_node[7].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane1.lineTo(p_node[6].x,p_node[6].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane1.lineTo(p_node[5].x,p_node[5].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>depth=node[8].z+node[7].z+node[6].z+node[5].z;</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>depth=depth/(-4);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane1.swapDepths(depth);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>amount=depth/50*100+15;</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>//new
Color(plane1).setTransform({ra:amount,ga:amount,ba:amount,aa:amount});</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>new
Color(plane1).setTransform({ra:amount,ga:amount,ba:amount});</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>depth=0;</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane2.clear();</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane2.beginFill(0x808080,100);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane2.lineStyle(3,0xFF0000,100);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane2.moveTo(p_node[1].x,p_node[1].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane2.lineTo(p_node[2].x,p_node[2].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane2.lineTo(p_node[3].x,p_node[3].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane2.lineTo(p_node[4].x,p_node[4].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane2.lineTo(p_node[1].x,p_node[1].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>depth=depth+node[4].z+node[3].z+node[2].z+node[1].z;</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>depth=depth/(-4);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane2.swapDepths(depth);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>amount=depth/50*100+15;</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>new
Color(plane2).setTransform({ra:amount,ga:amount,ba:amount});</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>depth=0;</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane3.clear();</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane3.beginFill(0x8A0FF0,100);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane3.lineStyle(3,0xFF0000,100);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane3.moveTo(p_node[1].x,p_node[1].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane3.lineTo(p_node[2].x,p_node[2].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane3.lineTo(p_node[6].x,p_node[6].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane3.lineTo(p_node[5].x,p_node[5].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane3.lineTo(p_node[1].x,p_node[1].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>depth=depth+node[1].z+node[2].z+node[6].z+node[5].z;</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>depth=depth/(-4);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane3.swapDepths(depth);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>amount=depth/50*100+15;</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>new
Color(plane3).setTransform({ra:amount,ga:amount,ba:amount});</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>depth=0;</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane4.clear();</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane4.beginFill(0xE61A48,100);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane4.lineStyle(3,0xFF0000,100); </FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane4.moveTo(p_node[2].x,p_node[2].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane4.lineTo(p_node[3].x,p_node[3].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane4.lineTo(p_node[7].x,p_node[7].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane4.lineTo(p_node[6].x,p_node[6].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane4.lineTo(p_node[2].x,p_node[2].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>depth=depth+node[2].z+node[3].z+node[7].z+node[6].z;</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>depth=depth/(-4);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane4.swapDepths(depth);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>amount=depth/50*100+15;</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>new
Color(plane4).setTransform({ra:amount,ga:amount,ba:amount});</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>depth=0;</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane5.clear();</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane5.beginFill(0x49B667,100);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>plane5.lineStyle(3,0xFF0000,100);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane5.moveTo(p_node[4].x,p_node[4].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane5.lineTo(p_node[3].x,p_node[3].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane5.lineTo(p_node[7].x,p_node[7].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane5.lineTo(p_node[8].x,p_node[8].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>plane5.lineTo(p_node[4].x,p_node[4].y);</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT
face=宋體>depth=depth+node[4].z+node[3].z+node[7].z+node[8].z;</FONT></DIV>
<DIV></DIV>
<P>
<DIV><FONT face=宋體>depth=depth/(-4);</FONT></DIV>
<DIV></DIV>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -