JSFL删除Flash aso文件
我正在使用 FDT 3 和 Ant 制作一个 jsfl 文件,然后执行该文件来编译 fla,并且我正在尝试找出如何让 jsfl 删除 aso 文件。我尝试将 aso 文件的路径存储在 Ant 的属性中,然后在创建 jsfl 时将其添加到 jsfl 中,并且可以删除 aso 文件,但这意味着每个人都必须编辑该属性以适合他们的机器,我们是使用 Mac 和 Windows。
我的问题是,有没有办法让jsfl查找并删除aso文件?
I'm using FDT 3 and Ant to make a jsfl file that is then executed to compile fla's and I'm trying to figure out how to get the jsfl to remove the aso files. I've tried storing the path to the aso files in a property in Ant the is then added to the jsfl when its created and it works to remove the aso file but it means that everyone must edit that property to fit their machine, we are using Macs and Windows.
My question is, is there a way to have jsfl find and delete the aso files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
感谢 Rodrigoap 的回答,但我正在寻找 jsfl 代码行,该代码行将指向本地用户 aso 目录。
我实际上发现了 awsner。
fl.configURI 指向 loacl 用户 Flash 配置文件夹。然后,您只需将路径的其余部分添加到 aso 文件夹“/Classes/aso”即可。上面的行可用于在 Mac 或 Windows 上从 jsfl 文件中删除 aso 文件。
Thanks for the answer rodrigoap but I was looking for a jsfl line of code that would point to the local users aso dir.
I actually found out the awsner.
fl.configURI points to the loacl users Flash Configuration Folder. Then you just tack on the rest of the path to the aso folder "/Classes/aso". The line above can be used to delete aso files from a jsfl file on a mac or on windows.
我对FDT、jsfl或aso一无所知。此 Ant 任务将删除
./myPrj
中的每个 .aso 文件:I know nothing about FDT, jsfl or aso. This Ant task will delete every .aso file in
./myPrj
: