Flash,actionscript 3.0:如何将播放按钮链接到movieclip

时间:2014-11-11 05:03:59

标签: actionscript-3 flash button video

我收到以下错误。

/Volumes/PCC-2014/CAS-175/module_7/, Line 1, Column 163 1046: Type was not found or was not a compile-time constant: video.

我已命名实例,设置链接并命名该类。

import flash.events.MouseEvent;

play_btn.addEventListener(MouseEvent.CLICK, playAnimation);

function playAnimation(event:MouseEvent):void 
{
video.play();
}

stop_btn.addEventListener(MouseEvent.CLICK, playAnimation_2);

function playAnimation_2(event:MouseEvent):void 
{
video.stop();
}    

0 个答案:

没有答案