Skip to main content
July 16, 2019
Answered

EXE from FLASH in WINDOWS 10

  • July 16, 2019
  • 1 reply
  • 1422 views

EXE from FLASH in WINDOWS 10

How can I make a button into EXE FLASH to open another EXE FLASH in the same folder?

Like a link to open another file.

I tried the command "GETURL" but it doesnot respond

I tried the FSCOMMAND EXEC, but without sucess.

Which way can I make this action in button?

All of you can respond me by email that is fabio@amplitudebooks.com

This topic has been closed for replies.
Correct answer JoãoCésar17023019

Hi.

Yeah. That's AS3 and I'm Brazilian.

I stopped working with AS2 a long time ago... And I don't have Flash Professional installed to test. And as you may be aware it's not possible to install Flash Professional through the Create Cloud app anymore and AS2 is also not supported by Adobe anymore.

The best I can tell you is that the code won't be so different. Something along these lines shoud work:

yourButton.onPress = function()

{

    fscommand("exec", "target.exe");

};

Hopefully an AS2 user will be able to explain you better how to achieve this.

Regards,

JC

1 reply

JoãoCésar17023019
Community Expert
Community Expert
July 16, 2019

Hi.

If you are going to use fscommand, the .exe that you're gonna call must be inside of a folder called fscommand in the same directory of your main .exe.

So your code would be like:

import flash.events.MouseEvent;

function openEXE(e:MouseEvent):void

{

    // the 'target.exe' file lives inside the fscommand in the same directory of the main app

    fscommand("exec", "target.exe");

}

exeButton.addEventListener(MouseEvent.CLICK, openEXE);

I hope this helps.

Regards,

JC

July 17, 2019

Isso é AS3

Tem como me ver uma versão para AS2?