Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now