flash3.0语言play按钮怎么写代码?

来源:百度知道 编辑:UC知道 时间:2024/06/24 12:41:50
(1)首先要强调的是用3.0的脚本写。2.0的我会。
(2)实现的效果是:测试场景的时候需要点击按钮才能播放。否则停留在第一帧。
(3)如果回答满意我加分

stop();
按钮.addEventListener(MouseEvent.CLICK,afterClick);

function afterClick(evt:MouseEvent):void
{
play();
按钮.removeEventListener(MouseEvent.CLICK,afterClick);
}

http://livedocs.adobe.com/flash/9.0_cn/ActionScriptLangRefV3/index.html
这是脚本手册,看看就会了。就是stop和press>>跳转的结合