我有一个小音乐按钮,当点击停止一个音乐频道,当点击再次播放它。它开始播放,当我单击它时,会得到一个错误:
以下是完整的错误:
ReferenceError: Error #1069: Property running not found on flash.media.SoundChannel and there is no default value.
at [PROJECTNAME]::MainTimeline/fl_TapHandler_8()[Rockfall_fla.MainTimeline::frame3:215]
at runtime::ContentPlayer/simulationSendTouchEvent()
at runtime::SimulatedContentPlayer/clientSocketDataHandler()框架3第215行指这一行代码:
if(Chn_musicLoop.running == true){处理音乐的小函数如下所示:
function fl_TapHandler_8(event:TouchEvent):void
{
if(Chn_musicLoop.running == true){
musicIcon.alpha *= 0.5;
Chn_musicLoop.stop();
}
else{
musicIcon.alpha *= 2;
Chn_musicLoop.play()
}}我遗漏了什么吗?当我点击文本框上的"dismiss“,它就会像应该停止音乐一样.
发布于 2014-01-18 21:22:21
我被告知要加上这句话作为回答:
https://stackoverflow.com/questions/21207276
复制相似问题