在Flash CC中创建js暂停时间线声音

Createjs pause timeline sound in Flash CC

本文关键字:暂停 时间线 声音 js 创建 Flash CC      更新时间:2023-09-26

是否存在控制添加到时间线层的声音文件的方法喜欢用时间线暂停并恢复声音或者有没有用creatjs 检测浏览器中播放的声音

感谢

查看导出的lib代码。有一个帧脚本将具有playSound()调用。

框架脚本可能看起来像这样:

this.frame_12 = function() {
    playSound("sound_id");
}

你可以存储这个调用的结果,并控制它

this.frame_12 = function() {
    // Store the result as part of the current object.
    this.mySound = playSound("sound_id");
}

要控制它,您需要知道它驻留在哪里。如果它在你的主时间线上,它将是你的exportRoot:的一部分

exportRoot.mySound.stop();

我需要更多地了解你的设置才能提供更多帮助。