|
动作代码供参考 (1)主场景【AS】图层第1帧代码为: i=1; (2)主场景【AS】图层第2帧代码为: i++; duplicateMovieClip(xhp, "xhp"+i, i); setProperty(_root["xhp"+i], _x, random(550)); setProperty(_root["xhp"+i], _y, random(400)); setProperty(_root["xhp"+i], _xscale, random(60)+40); setProperty(_root["xhp"+i], _yscale, random(60)+40); setProperty(_root["xhp"+i], _alpha, random(80)+20); (3)主场景【AS】图层第3帧代码为: if (i<200) { gotoAndPlay(2); } else { gotoAndPlay(1); } (4)“雪景”元件第2帧代码为: i++; duplicateMovieClip(_root.xj.xhp, "xhp"+i, i); setProperty(_root.xj["xhp"+i], _x, random(550)); setProperty(_root.xj["xhp"+i], _y, random(400)); setProperty(_root.xj["xhp"+i], _xscale, random(60)+40); setProperty(_root.xj["xhp"+i], _yscale, random(60)+40); setProperty(_root.xj["xhp"+i], _alpha, random(80)+20);
上一页 [1] [2] [3] [4] [5] [6] [7] |