2011-01-22 40 views
1

我是新來的Flash,我需要插入一個flv到一個新的Flash項目,我希望這個視頻不停地播放。flash flv內閃

感謝


這是有趣的,但如果我使用的是較小的視頻,然後將視頻循環......

回答

2

如果使用FLVPlayback組件,代碼迴路視頻應該是這樣的:

import fl.video.VideoEvent; 

/** 
* Your code where you set the source and other properties of the FLVPlayback component 
*/ 

//Add an event listener to the COMPLETE event, so you will know when the video reached the last frame 
flvComp.addEventListener(VideoEvent.COMPLETE, loopVideo); 

//Rewind and start playing the video again 
function loopVideo(event:VideoEvent):void 
{ 
    flvComp.autoRewind = true; 
    flvComp.play(); 
}; 

我希望它能幫助,祝你好運 羅布

+0

它stil不起作用。我有一個movieclip,它包括這個flv電影.. movieclip的作品,但電影停止後的時間到了。此代碼在「VideoEvent」中給我一個錯誤。我試圖寫視頻.. – 2011-01-22 15:15:03