Skip to main content
rasoolg18868567
Participating Frequently
October 22, 2015
Answered

Load an external aplication.

  • October 22, 2015
  • 3 replies
  • 665 views

Hello everyone !

How can I load an external  application when a button is clicked using action script 2 ?

This topic has been closed for replies.
Correct answer sinious

I'm not sure what your context or situation is but Flash (nor anything in a sandbox like a webpage) can't load executable files off the filesystem. If you're running this in a projector then you can use the fscommand exec function, see here for more details:

Flash CS4 Professional ActionScript 2.0

3 replies

sinious
Legend
October 23, 2015

Each button runs a separate function. Just as you have your first button code working, copy that code and paste it for each separate button.

In the code, be sure to change the button name to the appropriate button instance names. Then change the fscommand it runs to the proper executable.

rasoolg18868567
Participating Frequently
October 22, 2015

I'm now able to load an executable file but cant load another one,I have go 3 buttons,I want these three buttons to load 3 different program when clicked,how is it possible ?

sinious
siniousCorrect answer
Legend
October 22, 2015

I'm not sure what your context or situation is but Flash (nor anything in a sandbox like a webpage) can't load executable files off the filesystem. If you're running this in a projector then you can use the fscommand exec function, see here for more details:

Flash CS4 Professional ActionScript 2.0