0

私は FDT 3 と Ant を使用して jsfl ファイルを作成し、それを実行して fla をコンパイルしています。jsfl から aso ファイルを削除する方法を見つけようとしています。Antのプロパティにasoファイルへのパスを保存しようとしましたが、作成時にjsflに追加され、asoファイルを削除するように機能しますが、マシンに合わせてそのプロパティを編集する必要があることを意味します。 Mac と Windows を使用しています。

私の質問は、jsfl に aso ファイルを見つけて削除させる方法はありますか?

4

2 に答える 2

3

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.

于 2009-12-04T00:46:46.177 に答える
0

FDT、jsfl、または aso については何も知りません。この Ant タスクは、 内のすべての .aso ファイルを削除します./myPrj:

 <delete>
    <fileset dir="./myPrj" includes="**/*.aso"/>
 </delete>
于 2009-11-27T15:40:44.250 に答える