JSFL删除Flash aso文件

发布于 2024-08-12 02:53:13 字数 228 浏览 1 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

空城缀染半城烟沙 2024-08-19 02:53:13

感谢 Rodrigoap 的回答,但我正在寻找 jsfl 代码行,该代码行将指向本地用户 aso 目录。

我实际上发现了 awsner。

FLfile.remove( fl.configURI + "/Classes/aso" );

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.

FLfile.remove( fl.configURI + "/Classes/aso" );

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.

浪菊怪哟 2024-08-19 02:53:13

我对FDT、jsfl或aso一无所知。此 Ant 任务将删除 ./myPrj 中的每个 .aso 文件:

 <delete>
    <fileset dir="./myPrj" includes="**/*.aso"/>
 </delete>

I know nothing about FDT, jsfl or aso. This Ant task will delete every .aso file in ./myPrj:

 <delete>
    <fileset dir="./myPrj" includes="**/*.aso"/>
 </delete>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文