Flash 5 - Flash MX problem

heya guys

i need a little help with a problem i am encountering

until recently i have been using flash 5, and have just upgraded to flash mx

unfortunately i have been working on a project in flash 5 for some time, and the change seems to have effected the workings of my project

in particular, i am using an fscommand to open & close .exe projector files made from flash

the previous command was:

on (release) {
fscommand(“exec”, “file.exe”);
}
on (release) {
fscommand(“quit”);
}

but this no longer works when the file is published & projected using flash mx…

I know it is a difference between the 2 versions of flash, because files i have projected to .exe using flash 5 still work, and they will exec flash mx projected files, but flash mx projected files will not exec anything at all…

any help at all here would be appreciated

thankyou

FW

[size=4]exec[/size]

The exec command is used to launch an external application. In Macromedia Flash MX the external application must be in a subfolder named fscommand. This subfolder must be in the same directory as the projector which uses the fscommand action. This security restriction helps prevent malicious use of the exec option.

The following script launches the Windows application someApplication.exe, which is in the fscommand folder on the same level as the projector:

on (release) {
	fscommand ("exec", "someApplication.exe");
}

[size=1]Note: The fscommand subfolder path is not used in the argument. Place someApplication.exe inside the fscommand folder, but just use the name of the application in the argument.[/size]

http://www.macromedia.com/support/flash/ts/documents/fscommand_projectors.htm

and i have no problems with quit :-\

Thankyou for your help, this does work, but truly screws my project, because the design is calling for .exe projector files that are in the same directory, & i can’t have a sub dir called fscommand inside a sub dir called fscommand & so on, I need to ti call from the same dir…

any ideas?

otherwise it’s back to flash 5 for me…

FW

maybe using a bat file … i’m not so sure

on (release) {
fscommand (“exec”, “whatever.bat”)
}

create your whatever.bat file in notepad and write in the file

@ echo off
start someapplication.exe
exit

the .bat file must be in the subfolder fscommand and i don’t know if you can target different folders with it. in your shoes … i say it’s worth a try :slight_smile:

[size=1]**NOTE: **you can open any file format with the .bat file. not only .exe :smirk:[/size]

*Originally posted by kax *
**maybe using a bat file … i’m not so sure… **

Thats right. Bat files are the typical way of handling fscommand exec with the MX need to have the files in the fscommand folder