动画CC javascript按钮不能一直工作?

问题描述:

我在Animate CC中做了一个简单的演示,并且我有几个按钮,都有不同的名称,类似的功能(gotoAndPlay)。
只有其中一个按钮可以工作(按钮22),并且只有在第一次单击时,第二次单击才会出现错误的框架?
我在画布上工作,并以HTML5/Javascript导出。动画CC javascript按钮不能一直工作?

这里是我的代码

按钮21

this.Site21.addEventListener("click",fl_ClickToGoToAndPlayFromFrame_22.bind(this)); 
function fl_ClickToGoToAndPlayFromFrame_22() 
{ 
    this.gotoAndPlay(22); 
} 

按钮22

this.Site22.addEventListener("click", fl_ClickToGoToAndPlayFromFrame_23.bind(this)); 

function fl_ClickToGoToAndPlayFromFrame_23() 
{ 
    this.gotoAndPlay(23); 
} 

他们都有 '上' 和 '过度' 的状态,而这一切的工作。只是行动似乎不起作用。

我上传了控制台,并且没有错误。

我已经通过adobe论坛进行了搜索,但似乎没有任何关于此的内容。 https://helpx.adobe.com/animate/using/creating-publishing-html5-canvas-document.html http://blogs.adobe.com/animate/category/actionscript/

var jsObject = this; 
this.Site21.addEventListener("click", fl_ClickToGoToAndPlayFromFrame_22(e)); 
function fl_ClickToGoToAndPlayFromFrame_22(e) 
{ 
    // if you need access to main 
    jsObject.gotoAndPlay(22); 
    // because here "this" means this current button 
    // e – means event (click) 
}