先做資料夾>內有影音檔>開新檔案>存檔在此資料夾
視窗>組件>FLVPLAYBACK>拖出>變色>SKIN>命名檔案
source=路徑
autoPlay=布林
play()
stop()
pause()
autoRewind
a_a.source = "train.flv"
a_a.autoPlay = false
a_a.autoRewind = true
bplay.addEventListener(MouseEvent.MOUSE_DOWN,doplay)
function doplay (e:MouseEvent):void{
a_a.play()}
bpause.addEventListener(MouseEvent.MOUSE_DOWN,dopause)
function dopause (e:MouseEvent):void{
a_a.pause()}
bstop.addEventListener(MouseEvent.MOUSE_DOWN,dostop)
function dostop (e:MouseEvent):void{
a_a.stop()}
全站熱搜
留言列表