coner
coner

Reputation: 270

Opening external exe file via fscommand

I have problem opening external exe file by clicking a button in Flash projector. I have seen that the external file must be under the folder fscommand. And this is the code;

private function Fnc(e:MouseEvent):void
{
    fscommand("exec", ".\\fscommand\\externalfile.exe");
    trace("***button pressed***");
}

However I found that answer and now I am not sure I can open a flash exe by another flash exe.

Addition: I can succesfully open other exes like Windows Media Player. So the answer might be the case but I don't know.

Upvotes: 0

Views: 4022

Answers (1)

akmozo
akmozo

Reputation: 9839

I don't know why a flash projector can not open another one !! Of course it can, it's just an exe like any other exe file !

You have just a little mistake in the path of the opened exe, so you should write :

private function Fnc(e:MouseEvent):void
{
    // flash knows that the exe is in the fscommand dir
    fscommand("exec", "externalfile.exe");
    trace("***button pressed***");
}

Take a look on this very simple example :

enter image description here

Hope that can help.

Upvotes: 1

Related Questions