在HTML5画布模式下将Adobe Animate CC与外部JavaScript文件一起使用 [英] Using Adobe Animate CC in HTML5 canvas mode with external JavaScript files
问题描述
我正在将一个大型FLA AS3项目过渡到Canvas/JS. 我有一个很大的AS文件外部文件夹结构,还有许多与类相关联的库对象.
I'm transitioning a large FLA AS3 project into Canvas/JS. I have a large external folder structure of AS files and many library objects associated with classes.
我已经将FLA转换为画布模式,但是找不到将JS文件与对象关联的方法. 我已经看到了有关在框架脚本中包含JS的在线示例,但我确实希望找到一种使用外部文件和库对象关联的方法.
I've converted FLA into a canvas mode but I can't find a way to associate JS files to the objects. I've seen online examples about including JS in frame scripts but I really hope to find a way to do it with external files and library objects association.
我会感激如何实现的任何方向或例子.
I'd appreciate any direction or example of how it can be done.
谢谢
推荐答案
我花了一些时间并设法更好地了解它的工作原理,并创建了一个简单的示例,将Flash Actionscript项目与外部AS文件和对象进行转换,面向结构的Animate CC Canvas和具有相似文件结构的Javascript文件项目.
I've spent some time and managed to get a better understanding how it works and created a simple example of converting Flash Actionscript project with external AS files and object-oriented structure into Animate CC Canvas and Javascript files project with similar files structure.
您可以在 https://github.com/xims/X-simple-flahtml上进行查看
这篇关于在HTML5画布模式下将Adobe Animate CC与外部JavaScript文件一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!