Adobe Animate CC HTML5画布与ClickToGoToAndPlayFromFrame冲突 [英] Adobe Animate CC HTML5 canvas conflicting ClickToGoToAndPlayFromFrame

查看:801
本文介绍了Adobe Animate CC HTML5画布与ClickToGoToAndPlayFromFrame冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对这个问题非常困惑和沮丧。我正在尝试创建一个基于用户输入跳转的交互式幻灯片。我在HTML5画布上使用Adobe Animate CC。

I am very stymied and frustrated by this problem. I am trying to create an interactive slideshow that jumps around based on user input. I am using Adobe Animate CC on an HTML5 canvas.

在第一张幻灯片中我有这段代码:

On the first slide I have this code:

this.stop();

this.Slide01_01But.addEventListener("click", fl_ClickToGoToAndPlayFromFrame_2.bind(this));

function fl_ClickToGoToAndPlayFromFrame_2()
{
    createjs.Sound.stop();
    this.gotoAndPlay("Slide02");
}

this.Slide01_01But.addEventListener("click", fl_ClickToGoToAndPlayFromFrame_3.bind(this));

function fl_ClickToGoToAndPlayFromFrame_3()
{
    createjs.Sound.stop();
    this.gotoAndPlay("Slide03");
}

第一个按钮工作正常。但是,第二个按钮只关闭音频而不会转到我要求的位置。我尝试在旧的查询中添加一个删除事件监听器函数,但是这不起作用,打破了更多的东西。你不能在一个框架中有多个ClickToGoToAndPlay吗?

The first button works fine. The second button, however, only turns off the audio and doesn't go to where I asked it to. I tried adding a remove event listener function has suggested in an older query, but that didn't work and broke even more stuff. Can you not have more than one ClickToGoToAndPlay in one frame?

请帮忙!

谢谢!

推荐答案

似乎我在演示文稿的后期出现了一些错误,以某种方式抛弃了所有内容。不确定为什么会影响第一个按钮,但......现在似乎已修复

Seems I had some instances wrong later in the presentation that somehow threw everything off. Not sure why that affected the first button, but...seems fixed now

这篇关于Adobe Animate CC HTML5画布与ClickToGoToAndPlayFromFrame冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆