{"id":85,"date":"2005-05-21T23:05:14","date_gmt":"2005-05-21T15:05:14","guid":{"rendered":"http:\/\/fdream.net\/blog\/article\/85.aspx"},"modified":"2006-03-26T21:03:34","modified_gmt":"2006-03-26T13:03:34","slug":"%e5%ad%a6flash%e5%88%9d%e6%9c%9f%e7%9c%8b%e5%88%b0%e7%9a%84%e7%bb%8f%e5%85%b83D%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/fdream.net\/blog\/article\/85","title":{"rendered":"\u5b66flash\u521d\u671f\u770b\u5230\u7684\u7ecf\u51783D\u4ee3\u7801"},"content":{"rendered":"<p><span style=\"color:Brown\"><b>\u770b\u4e0b\u6548\u679c\u5148\uff1a<\/b><\/span><\/p>\n<p><object id=\"swf8\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=9,0,28,0\" width=\"400\" height=\"300\"><param name=\"movie\" value=\"http:\/\/fdream.net\/blog\/wp-content\/uploads\/2005\/05\/85wb_3d.swf\" \/><param name=\"quality\" value=\"high\" \/><param name=\"wmode\" value=\"opaque\" \/><param name=\"allowFullScreen\" value=\"true\" \/><param name=\"allowScriptAccess\" value=\"sameDomain\" \/><embed src=\"http:\/\/fdream.net\/blog\/wp-content\/uploads\/2005\/05\/85wb_3d.swf\" id=\"swf8\" allowFullScreen=\"true\" allowScriptAccess=\"sameDomain\" quality=\"high\" wmode=\"opaque\" pluginspage=\"http:\/\/www.adobe.com\/shockwave\/download\/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application\/x-shockwave-flash\" width=\"400\" height=\"300\"><\/embed><\/object><\/p>\n<p>\u8bb0\u5f97\u5f53\u65f6\u662f\u4ece\u4e00\u672c\u4e66\u4e0a\u6284\u6765\u7684\uff0c\u6ca1\u6709\u4ec0\u4e48\u6ce8\u91ca\uff0c\u73b0\u5728\u53c8\u62ff\u51fa\u6765\u770b\u4e86\u770b\uff0c\u53d1\u73b0\u81ea\u5df1\u6570\u5b66\u529f\u5e95\u4e0d\u591f\uff0c\u8fd8\u662f\u6ca1\u80fd\u770b\u61c2\uff0c\u54ea\u4f4d\u9ad8\u4eba\u770b\u61c2\u4e86\u5e2e\u5fd9\u89e3\u91ca\u4e0b\uff0c\u8c22\u8c22\u4e86\uff01<\/p>\n<blockquote>\n<p>function init(){<br \/>\t_root.cr&#101;ateEmptyMovieClip(&#8220;pad&#8221;,1);<br \/>\tpad._x=270;<br \/>\tpad._y=200;<br \/>};<br \/>ya=Math.PI;<br \/>\/\/\u8bbe\u5b9a\u89c2\u6d4b\u70b9\u7684\u8ddd\u79bb<br \/>fl=10000;<br \/>x=new Array(-100,100,100,-100,-100,100,100,-100);<br \/>y=new Array(-100,-100,100,100,-100,-100,100,100);<br \/>z=new Array(-100,-100,-100,-100,100,100,100,100);<br \/>xp=new Array();<br \/>yp=new Array();<br \/>function square(x1,y1,x2,y2,x3,y3,x4,y4,col){<br \/>\tpad.beginFill(col,50);<br \/>\tpad.lineStyle(1,0,100);<br \/>\tpad.moveTo(x1,y1);<br \/>\tpad.lineTo(x2,y2);<br \/>\tpad.lineTo(x3,y3);<br \/>\tpad.lineTo(x4,y4);<br \/>\tpad.lineTo(x1,y1);<br \/>\tpad.endFill();<br \/>};<br \/>_root.onEnterFrame=function(){<br \/>\tinit();<br \/>\tcosxa=Math.cos(xa);<br \/>\tsinxa=Math.sin(xa);<br \/>\tcosya=Math.cos(ya);<br \/>\tsinya=Math.sin(ya);<br \/>\txa+=pad._ymouse\/2000;<br \/>\tya+=pad._xmouse\/2000;<br \/>\tfor(i=0;i<8;i++){<br \/>\t\typt=cosxa*y[i]-sinxa*z[i];<br \/>\t\tzpt=cosxa*z[i]+sinxa*y[i];<br \/>\t\txpt=cosya*x[i]-sinya*zpt;<br \/>\t\tzpt=cosya*zpt+sinya*x[i];<br \/>\t\tscale=fl\/(fl+zpt+200);<br \/>\t\txp[i]=xpt*scale;<br \/>\t\typ[i]=ypt*scale;<br \/>\t};<br \/>\tsquare(xp[0],yp[0],xp[1],yp[1],xp[2],yp[2],xp[3],yp[3],0xff0000);<br \/>\tsquare(xp[0],yp[0],xp[3],yp[3],xp[7],yp[7],xp[4],yp[4],0x00ff00);<br \/>\tsquare(xp[4],yp[4],xp[5],yp[5],xp[6],yp[6],xp[7],yp[7],0x0000ff);<br \/>\tsquare(xp[1],yp[1],xp[2],yp[2],xp[6],yp[6],xp[5],yp[5],0xff00ff);<br \/>\tsquare(xp[0],yp[0],xp[1],yp[1],xp[5],yp[5],xp[4],yp[4],0xffff00);<br \/>\tsquare(xp[2],yp[2],xp[3],yp[3],xp[7],yp[7],xp[6],yp[6],0x00ffff);<br \/>};<br \/>_root.onMouseDown=function(){<br \/>\t_root.draw=true;<br \/>};<br \/>_root.onMouseUp=function(){<br \/>\t_root.draw=false;<br \/>};<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u770b\u4e0b\u6548\u679c\u5148\uff1a \u8bb0\u5f97\u5f53\u65f6\u662f\u4ece\u4e00\u672c\u4e66\u4e0a\u6284\u6765\u7684\uff0c\u6ca1\u6709\u4ec0\u4e48\u6ce8\u91ca\uff0c\u73b0\u5728\u53c8\u62ff\u51fa\u6765\u770b\u4e86\u770b\uff0c\u53d1\u73b0\u81ea\u5df1\u6570\u5b66\u529f\u5e95\u4e0d\u591f\uff0c\u8fd8\u662f\u6ca1\u80fd\u770b\u61c2\uff0c\u54ea\u4f4d\u9ad8\u4eba\u770b\u61c2\u4e86\u5e2e\u5fd9\u89e3\u91ca\u4e0b\uff0c\u8c22\u8c22\u4e86\uff01 function init(){ _root.cr&#101;ateEmptyMovieClip(&#8220;pad&#8221;,1); pad._x=270; pad._y=200;};ya=Math.PI;\/\/\u8bbe\u5b9a\u89c2\u6d4b\u70b9\u7684\u8ddd\u79bbfl=10000;x=new Array(-100,100,100,-100,-100,100,100,-100);y=new Array(-100,-100,100,100,-100,-100,100,100);z=new Array(-100,-100,-100,-100,100,100,100,100);xp=new Array();yp=new Array();function square(x1,y1,x2,y2,x3,y3,x4,y4,col){ pad.beginFill(col,50); pad.lineStyle(1,0,100); pad.moveTo(x1,y1); pad.lineTo(x2,y2); pad.lineTo(x3,y3); pad.lineTo(x4,y4); pad.lineTo(x1,y1); pad.endFill();};_root.onEnterFrame=function(){ init(); cosxa=Math.cos(xa); sinxa=Math.sin(xa); cosya=Math.cos(ya); sinya=Math.sin(ya); xa+=pad._ymouse\/2000; ya+=pad._xmouse\/2000; for(i=0;i<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[154,78,63],"class_list":["post-85","post","type-post","status-publish","format-standard","hentry","category-coding","tag-3D","tag-AS","tag-flash"],"views":20720,"_links":{"self":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":0,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"wp:attachment":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}