【发布时间】:2018-01-08 16:11:25
【问题描述】:
我需要有一个 Animate CC 可以通过以下方式连接到外部文件来访问的功能:Global>Includes。
然后,当我单击影片剪辑时,我需要运行位于外部文件上的函数。
例如,我的影片剪辑上的代码是:
this.stop(); // stops the action on my movie clip
myFunction(); // trying to access function from external javascipt file
外部文件中的代码是:
function myFunction() { // this code is not being called from my movie clip
alert("working!");
}
控制台日志状态:“myFunction”未定义。
感谢您的帮助,
克里斯汀
【问题讨论】:
-
你想重现你在网上找到的例子吗?
-
我确实让它工作了:我最终试图让 myFunction 运行脚本调用 Storyline Articulate 中的一个变量......这是我链接到 Animate CC 的 Storyline 中的 user.js 文件.
标签: javascript jquery-animate adobe animate-cc