即在同一個swf中,可以指定多個的動畫按不同幀率播放,比較實用.
源代碼下載:
[url=http://files.hexagonstar.com/classes/as3/animatedbitmap.zip]http://files.hexagonstar.com/classes/as3/animatedbitmap.zip[/url]
(注:包括了一個名叫HDRS-CreateImageSequence的jsx腳本,這個腳本是用Photoshop CS將一系列的位圖做成位圖序列的.選中了多個位圖,再執行這個腳本即可做成位圖序列.不過要求這些位圖都是長寬相同的.)
[url=http://files.hexagonstar.com/labs/animatedbitmap/AnimatedBitmapDemo.swf]動畫演示[/url]
:(這個動畫是99幀/秒的,但裏面的位圖動畫是24幀/秒)
原帖見:
[url=http://labs.hexagonstar.com/animatedbitmapclass/]AS3 Animated Bitmap Class[/url]
[url=http://www.actionscript3.cn/bbs/thread-267-1-1.html]詳細全文[/url]
本文轉自:http://www.5uflash.com/flashjiaocheng/Flash-as3-jiaocheng/1979.html