> <exec executable="${flashPlayer}" dir="." >
>                 <arg line="${deployDir}/master.swf" />
> </exec>
>
>
> where ${flashPlayer} is the Path to my Flash-Player 
> (/Applications/Studio8/Macromedia Flash 8/Players/SAFlashPlayer:). 
> But I get an error:
> cannot execute binary file

The flash player isn't a tool that can receive the .swf file as a 
parameter.
So exec task won't work here.

Alternatively, you could use an open command with -a switch :

<exec executable="open" dir="." >
                 <arg line="-a ${flashPlayer} ${deployDir}/master.swf" />
</exec>

That should do the trick.
Or just :
<exec executable="open" dir="." >
                 <arg line="-a SAFlashPlayer ${deployDir}/master.swf" />
</exec>

Be sure to launch one time the Flash Player manually.
If not the SAFlashPlayer won't be signifiant for the open tool.


I don't remember if there is a open task in ant.

HTH
-----------
erixtekila
http://blog.v-i-a.net/

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to