# 比較fps(frames per second)的flash

- URL: https://justfly.idv.tw/%e6%af%94%e8%bc%83fpsframes-per-second%e7%9a%84flash/
- 日期: 2009-01-23
- 分類: WEB&amp;RIA
- 標籤: flash, youtube

雖然以前也有想過要從youtube下載影片

不過反正bt更好用所以都只有想想

這次為了做一個像是http://www.123securityproducts.com/realtime-page.html的flash

需要先拿個flv當source（為啥公司會連一個可以用的都沒有也真令人費解＠＠）

而且flash也不能在as中動態變更fps

非得在轉檔的時候就轉好才行

剛好就在重灌狂人那兒找到[這一篇](http://briian.com/?p=173)

不過那個網頁轉出來的avi檔怪怪的

所以還是轉成mov檔後再用flash video encoder轉回3fps～30fps的flv檔

如果說有KMPlayer的話,[下載Youtube Video Downloader](http://download.freewarefiles.com/files/youtubedownloader.exe)來看比較實在

接下來又是複習時間啦

- 動態載入flvplayback

- 影片撥玩自動重撥

- 把movieClip的buttonMode設成true設成true後必需要加一行mouseChildren = false;

```
import fl.video.FLVPlayback;
import fl.video.VideoEvent;

var flvArr:Array = new Array("","3fps","7.5fps","15fps","30fps");
var flvstr:String = ".flv";
var kumiArr:Array = new Array("",[1,2],[1,3],[1,4],[2,3],[2,4],[3,4]);
var t1:TextField = new TextField();
var t2:TextField = new TextField();
var t_fmt:TextFormat = new TextFormat(null,14,0xff6600);
t1.x = 16;
t2.x = 271;
t1.y = t2.y = 175;
t1.height = t2.height = 30;
t1.width = t2.width = 50;

for (var i=1; i
```
