PDA

View Full Version : fscommand to open a file with its default application


Shintax
01-29-2007, 08:17 PM
Hi!,

I just modified a little bit of a quite old animation we had (Flash 5) that was used as an intro for a CD, and when I published it again (in Flash 8) the botton that opened a .pps file didnt work anymore, I didnt change a thing in the AS Code at first

Is this one:
==============
on (release)
{
getURL("FSCommand:exec","Lanza.bat")
getURL("FSCommand:quit")
}
==============

I looked in documentations for any syntaxis change because of the ActionScript version and found that this one would work, but it didnt :

==============

on (release)
{
fscommand("exec", "Lanza.bat");
fscommand("quit")
}
==============

I tried publishing it (as a .exe file) in different versions (from Flash 5 to Flash 8, and in ActionScript 1.0 and 2.0). I would really appreciate your help =).

See ya!

mrand01
01-30-2007, 06:00 PM
is Lanza.bat in an fscommand folder?