一個(gè)彩色光條的效果_Flash教程
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!
推薦:用Flash影片剪輯復(fù)制做“鼠標(biāo)跟隨”特效思路:以前各種教程中都用startDrag去產(chǎn)生鼠標(biāo)跟隨的效果,在這里我用別的方法去跟大家show一個(gè)鼠標(biāo)跟隨的效果。其實(shí)鼠標(biāo)跟隨說(shuō)白了不就是要求對(duì)象的位置和
做了一個(gè)彩色光條的效果,效果請(qǐng)瀏覽 http://www.flashplayer.cn/example/colorlight/ 制作非常簡(jiǎn)單,基本就是應(yīng)用一下mask效果,復(fù)制多個(gè)光條利用一些隨機(jī)性產(chǎn)生效果 for (var i:Number = 0; i<15; i ) {var tmpmc:MovieClip = light.duplicateMovieClip("light_" i, i 1);
tmpmc._x = randomZone(150, 500);
tmpmc._y = randomZone(150, 400);
tmpmc._xscale = randomZone(70, 120);
tmpmc._yscale = randomZone(70, 120);
tmpmc._rotation = randomZone(0, 360);
tmpmc.b.gotoAndPlay(randomZone(1, 130));
tmpmc.b.a.gotoAndPlay(randomZone(1, 50));
}
//返回s到e的隨機(jī)數(shù),包括s和e
function randomZone(s:Number, e:Number):Number {
return s Math.floor((e-s 1)*Math.random());
} 下載源文件:http://www.flashplayer.cn/example/colorlight/colorlight.fla
分享:技巧:自制Flash FLV視頻播放器大家好,前不久筆者將CenFunMusicPlayer加入flv視頻播放功能,這里單獨(dú)拿出來(lái)給大家做一個(gè)FlashFLV播放器(僅ActionScript控制,不使用FLVPlayback組件),如
相關(guān)Flash教程:
- 相關(guān)鏈接:
- 教程說(shuō)明:
Flash教程-一個(gè)彩色光條的效果
。