Advaced Flash! How do I run and exe from flash?

  • Qsic
  • Beginner
  • Beginner
  • Qsic
  • Posts: 35

Post 3+ Months Ago

Ok I have a folder with a flash file in it plus another totally independent exe. How do I create a script that will run the exe file when I press a button inside the flash movie. I have the button already to go now I just need it to run the exe. I don't care if it pops up in a totally diffrent window. I just need it to run so they can install a program directly from flash.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Qsic
  • Beginner
  • Beginner
  • Qsic
  • Posts: 35

Post 3+ Months Ago

Pretty please. Thanks
  • R.L.D.
  • Student
  • Student
  • User avatar
  • Posts: 83
  • Loc: Astoria,Queens

Post 3+ Months Ago

try linking the button to where the exe file is on the server just as if you woulld to link a URL

but that is going to ask the person that clicks on it if they want to save to disk or open the exe file.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

This may give you some ideas:
http://www.actionscripts.org/tutorials/ ... ndex.shtml
  • yuriythebest
  • Banned
  • Banned
  • User avatar
  • Posts: 143
  • Loc: Ukraine

Post 3+ Months Ago

you must use fscommsnd, here is the code for a button:

on(release){
fscommand("exec", "c:\yourdir\yourapp.exe");
}
  • Presto-X
  • Born
  • Born
  • Presto-X
  • Posts: 1

Post 3+ Months Ago

Here is yet another helpful link for the fscommand command: http://www.macromedia.com/cfusion/knowl ... 14280#Exec
  • 5N4K3
  • Graduate
  • Graduate
  • User avatar
  • Posts: 107

Post 3+ Months Ago

yuriythebest wrote:
you must use fscommsnd, here is the code for a button:

on(release){
fscommand("exec", "c:\yourdir\yourapp.exe");
}


In Flash MX 2004 doesn't this only work with projectors and also using a subdirectory named fscommand?
  • 5N4K3
  • Graduate
  • Graduate
  • User avatar
  • Posts: 107

Post 3+ Months Ago

SaschArt wrote:
Here is a good and free application for exactly what you need http://soft.saschart.com/

Good luck


Nice app :)
Is it possible to set it's Z order to Always on Bottom?
(Would like to run this or Flash Projector fullscreen but BELOW the taskbar) any ideas how?
  • wiwid
  • Born
  • Born
  • wiwid
  • Posts: 1

Post 3+ Months Ago

Quote:
on(release){
fscommand("exec", "c:\yourdir\yourapp.exe");
}


I tried that script but not respon to open "path/file.exe",
do yo help me?
  • middayc
  • Novice
  • Novice
  • User avatar
  • Posts: 23
  • Loc: Slovenia

Post 3+ Months Ago

do you want to do this when flash is opened in a browser or in standalone local context?

If in a browser this isn't and shuldn't be possible **by any chance** as it would be like the biggest security hole ever.
  • monki
  • Born
  • Born
  • monki
  • Posts: 2

Post 3+ Months Ago

Hi there, I have wrote this action statement in flash but no response when I test the animation. Is there anything wrong with it?

fscommand("exec", "program/installer.exe");
stop();
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

as 5N4K3 says:
fscommand works only in projector and if the file reside in a subdirectory called fscommand.

Adobe info:
The exec command can contain only the characters A-Z, a-z, 0-9, period ()., and underscore (_). The exec command runs in the subdirectory fscommand only. In other words, if you use the fscommand exec command to call an application, the application must reside in a subdirectory named fscommand.

In other words, place your installer.exe in a subfolder called fscommand and use: fscommand("exec", "installer.exe");
  • monki
  • Born
  • Born
  • monki
  • Posts: 2

Post 3+ Months Ago

Thank you for your reply. Helps me alot.

Post Information

  • Total Posts in this topic: 13 posts
  • Users browsing this forum: No registered users and 14 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.