一、介紹與Flash動畫控制有關的javascript函數(shù):
函數(shù)名 使用 作用
play() wgzc.play() 播放Flash動畫
stopplay() wgzc.stopplay() 停止播放Flash動畫
rewind() wgzc.rewind() 停止播放Flash動畫并返回第一幀
totalframes() wgzc.totalframes() 返回Flash動畫總幀數(shù)
gotoframe(int num) wgzc.gotoframe(int num) 轉到指定幀
二、程序代碼:
函數(shù)名 使用 作用
play() wgzc.play() 播放Flash動畫
stopplay() wgzc.stopplay() 停止播放Flash動畫
rewind() wgzc.rewind() 停止播放Flash動畫并返回第一幀
totalframes() wgzc.totalframes() 返回Flash動畫總幀數(shù)
gotoframe(int num) wgzc.gotoframe(int num) 轉到指定幀
二、程序代碼: