如何使用 JSFL 将 .fla 文件保存为较旧的 Flash IDE 格式?
由于 Flash 5.5 默认情况下以 5.5 格式保存文件,而该格式在 5.0 编辑器中不兼容,因此我们需要一种使用 JSFL 脚本以旧格式保存 .fla 文件的方法。
这可以做到吗?如何?
背景: 我们的一位开发人员安装了 Flash IDE 5.5,并对我们拥有的数百个 fla 文件运行了修改脚本。更改正常,但文件保存格式不行。它自动将无法在 5.0 IDE 上打开的 5.0 文件保存为 5.5 格式。
我们可以从备份中恢复文件,或者他可以通过“另存为”对话框手动保存每个文件。
我更愿意找到一种方法以旧格式(如 Flash IDE 5.0)批量保存 .fla 文件。 JSFL 看起来接近最佳,但我找不到一种方法来保存具有特定 Flash 版本的文件。
Since Flash 5.5 by default saves files in 5.5 format that's incompatible in 5.0 editors we need a way to save .fla files in older format with a JSFL script.
Can this be done? How?
Background:
One of our developers installed the Flash IDE 5.5 and ran a modifying script on hundreds of fla files that we have. The changes were ok, but the file save format was not. It automatically saved the 5.0 files in 5.5 format that can not be opened on the 5.0 IDEs.
We could restore files from backups or he could go trough each file manually saving them with the save as dialog.
I'd prefer to find a way to batch save .fla files in older formats like Flash IDE 5.0. JSFL would look close to optimal, but I could not find a way to save the files with specific flash version in mind with it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,我认为 API 中不提供该功能。
您可能会考虑在每个文件上运行 JSFL,然后通过 FLfile.runCommandLine() 运行命令行脚本来执行 Automator 脚本(如果在 Mac 上)或等效脚本(如果在 Windows 计算机上则通过 Google 搜索)。
您可能还想查看 xJSFL (目前正在开发中),它可能具有此类操作的功能未来。
As far as I am aware, I don't think that functionality is available in the API.
You might consider running the JSFL on each file, then running a command line script via FLfile.runCommandLine() to execute an Automator script (if on a mac) or the equivalent (Google it) if on a Windows machine.
You might also want to check out xJSFL (currently in development) which may have functionality for this kind of action in the future.