fscommand exec

Godlike_Killer

Power Member
Este código não funciona não sei porquê, talvez vocês saibam e me possam ajudar :)

Código:
on (release) {
      fscommand("exec", Ficheiro.exe);
}
Tenho o .fla e os .exe (fiz Publish de .swf para o conseguir abrir com o fscommand exec) todos na mesma pasta, que está no Ambiente de Trabalho.
O código não dá erros, mas não produz efeito nenhum.
Obrigado desde já pela atenção.
 
Última edição:
Vê lá se isto ajuda:

Repara que o nome do ficheiro está entre aspas e eles dizem que tens de ter o ficheiro numa pasta «fscommand»




retirado de:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14280&sliceId=1#Exec




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 applicationsomeApplication.exe, which is in the fscommand folder on the same level as the projector:
    on (release) {
    fscommand ("exec", "someApplication.exe");
    }

    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.
 
Vê lá se isto ajuda:

Repara que o nome do ficheiro está entre aspas e eles dizem que tens de ter o ficheiro numa pasta «fscommand»




retirado de:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14280&sliceId=1#Exec




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 applicationsomeApplication.exe, which is in the fscommand folder on the same level as the projector:
    on (release) {
    fscommand ("exec", "someApplication.exe");
    }

    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.

Já deu obrigado :)
 
Isto já é antigo mas eu só estou a trabalhar com esta função agora:007:

Eu já ando a tentar fazer isto à umas duas horas e nada, tenho o código apenas assim

Código:
fscommand("exec","FreeYouTubeToMP3Converter.exe");

Já tentei com o swf e o ficheiro no Ambiente de trabalho, com os dois numa pasta "fscommand" e nada.

Também já tentei desta forma.
Código:
Ts.onRelease=function(){
fscommand ("exec", "FreeYouTubeToMP3Converter.exe");
}

Sendo Ts um movie clip que tenho no palco.
 
Back
Topo