看板 Flash 關於我們 聯絡資訊
改好的檔案 http://www.ac-momo.com/download/snowfix.rar 希望對你有幫助:) 記得研究為什麼要這樣寫,才會有進步的:)))) stop(); var snowNum:Number = 1; snow_all.snow._visible = false; function getSnow() { duplicateMovieClip(snow_all.snow, "snow"+snowNum, snow_all.getNextHighestDepth()); snow_all['snow'+snowNum]._visible=false snow_all['snow'+snowNum]._x = Math.random(1)*600; snow_all['snow'+snowNum]._y = Math.random(1)*20; snow_all['snow'+snowNum]._alpha = Math.random(1)*150; snow_all['snow'+snowNum].angle = Math.random(1)*24+3; snow_all['snow'+snowNum].speed = Math.random(1)*3+1; snow_all['snow'+snowNum].size = Math.random(1)*100; snow_all['snow'+snowNum]._visible=true snow_all['snow'+snowNum].onEnterFrame = function() { this._y += this.speed; this._rotation += this.angle; this._xscale = this._yscale=this.size; if (this._y>=360) { delete this.onEnterFrame; this.removeMovieClip(); } }; clearInterval(interSnow) interSnow=setInterval(getSnow,random(1000)) snowNum++ } getSnow() var interSnow:Number=setInterval(getSnow,1000) ※ 引述《cadmus22 (mdn頭家)》之銘言: : 剛剛照範例做了練習, : 雪花會飄動落下.. : 但只限於他的範例檔案 : 另外一個我自己做的..本來照著書上打程式碼 : 後來一直無法動作 : 就把範例一起來對照 : 但是我自己做的怎麼都不會動 : 把自己做的元件貼在範例裡面.就會動了 : 可是我一直不知道問題在哪 : 附上檔案http://twirl.at/0Du : 002是範例檔 : 003是我自己做的練習 -- 挖~~店員辭職啦~~~~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.133.27.234
cjcat2266:超熱心! 08/28 15:17
cadmus22:含淚感謝中...>"< 08/28 15:23
aquarianboy:是好人! :) 08/28 15:57