在flash CS3中,怎么弄一個(gè)下雪的情景?
提問(wèn)者: 瞿韋|瀏覽 94 次|提問(wèn)時(shí)間: 2015-06-12
已有 1 條回答
蔡紹
2015-06-14
最終答案
Mot); h2o.addEventListener(Event; this.random()*550,輸入如下代碼、文件—新建—ActionScript文件2; h2o,“類(lèi)”一欄中輸入“H2O”.5*Math、右擊“庫(kù)”面板中的“水泡”元件:Number=0,選擇“鏈接”.2+Math.x+=speedx:int=0.events; speedy=5*Math.MovieClip.y+=speedy運(yùn)行Adobe Flash CS31:H2O=new H2O();i++){ var h2o.random(); public function H2O(){ speedx=。8.3,名稱(chēng)為“水泡”(可任意命名).random()*.0)5.display:package{ import flash; var speedy.x=Math,類(lèi)型為“影片剪輯”.ENTER_FRAME.y>.y=0.random().random()-0; this; import flash; }}DisplayH2O().random()*550; if(this.alpha=; h2o、打開(kāi)動(dòng)作面板(窗口—?jiǎng)幼鳎? public class H2O extends MovieClip{ var speedx,在對(duì)話(huà)框中“鏈接”項(xiàng)中選擇“為ActionScript導(dǎo)出”、文件—新建—Flash文件(ActionScript 3.as為文件名保存(不要改動(dòng))4、將背景顏色設(shè)置為非白色(黑色等)6:Event){ this:Number=0.scaleY=scale.*.y=Math、以H2O; this; this.5:function DisplayH2O(){ for (var i.x=Math;400){ init(); } function Mot(e:Number=。7.scaleX=h2o;i< } }}3; } } function init(){ this,畫(huà)一朵雪花、插入—新建—元件.4+Math; h2o;150.addChild(h2o); var scale.random()*400、輸入以下代碼(大小寫(xiě)字母不能改動(dòng))