Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to create a button to load an external exe file

New Here ,
Jul 28, 2013 Jul 28, 2013

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!

TOPICS
ActionScript
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 28, 2013 Jul 28, 2013
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines