Flash CS4:我想用一个命令编译多个 fla,make 或 ant 是一个好的解决方案吗?
我正在开发一个包含多个 swf 的大型 Flash CS4 项目,并希望整合我的构建过程。 ant/make 是否过度杀伤力或者有人在大型 Flash 项目中成功使用它们?
谢谢
I'm working on a large Flash CS4 project with multiple swfs and want to consolidate my build process. Are ant/make overkill or have people out there successfully used them on large Flash projects?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我使用 Ant 打开多个 .fla(已排队)并在其中运行 JSFL 命令。您可以使用此方法依次编译多个 fla,并清理一些属性。 (删除调试模式、删除类路径或替换过时的路径、引发标志等)
我在 100+ fla 上执行此操作。效果很好,但可能很慢。
下面是带有 JSFL 命令的 ANT 脚本示例。 (JSFL 使用参数来强制或不强制编译,即使 fla 没有修改)
这是 JSFL,它是我多年来发现/所做的东西的集合......
I use Ant to open multiple .fla (queued) and run JSFL command inside them. You could compile multiple fla one after another with this method and also clean some properties. (Remove debug mode, get rid of a classpath or replace an obsolete path, raise flag, etc.)
I do this on 100+ fla. Works great, but can be slow.
Here's an ANT script with a JSFL command has example. (The JSFL use a parameter to force or not force a compilation even if the fla was not modified)
Here's the JSFL, its an assembly of stuff I found/did over the years...
我现在正在使用 ant 进行一个项目,该项目需要将 10-20 个以上的独立组件编译到各自的 swf 中...还使用它来部署到临时和生产服务器。设置起来有点痛苦,但是一旦设置起来就非常容易,而且编译时间相对较快。此外,您可以完全自定义 ant 编译目标...例如,您可能只想在 90% 的时间内编译 10 个 swf 中的 3 个,因此您需要设置一个构建目标来执行此操作。在我看来,这绝对是值得的。祝你好运!
I'm using ant right now for a project that needs to compile upwards of 10-20 separate components into their own respective swfs... also using it to deploy to a staging and production server. It's kind of a pain to setup, but once it is it's really easy with relatively fast compile times. Additionally, you can totally customize ant compile targets... for example, you might only want to compile only 3 of the 10 swfs 90% of the time, so you'd setup a build target to do just that. In my opinion it's definitely worth it. Good luck!
我有近 500 多个 FLA 文件,目前通过 ANT+JSFL 发布它们。我这里面临的问题是,FlashIDE在某个点崩溃,并且该点没有修复。但在发布全部文件中的一部分后,它肯定会崩溃。
如果有人在通过 ANT 和 JSFL 发布时发现任何类型的崩溃经历,我想听听。
I have almost more than 500 FLA files and currently publishing them through ANT+JSFL. The problem I am facing here is, FlashIDE crashes at a certain point and the point is not fixed. But it definitely crashes after publishing a part from the total lot of the files.
Would like to listen, if anyone is finding any sort of crash experience while publishing through ANT and JSFL.
我使用 Visual Studio 的 Amethyst 插件。它不仅可以构建多个项目,还可以检测依赖关系并仅构建必要的项目。
I use the Amethyst plugin for Visual Studio. Not only will it build multiple projects, it can detect the dependencies and only build what is necessary.