Skip to main content
Known Participant
July 29, 2013
Question

how to create a button to load an external exe file

  • July 29, 2013
  • 1 reply
  • 1384 views

hi

i have an flash cs5 project

so the user when clicking the button the exe file open ?

the exe in folder name "puzz"

the exe file name play.exe

i tried this

    button_1.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);   

    function fl_MouseClickHandler(event:MouseEvent):void

    {

                    flash.system.fscommand("exec","//puzz//play.exe");

                                            trace ("done");

    }

but nothing happen!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 29, 2013

play needs to be in a folder called fscommand or you need to use a proxy file in the fscommand folder to call play.exe

read the flash help files to understand some of the basics of fscommand.