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

Running an .exe

Guest
Sep 30, 2011 Sep 30, 2011

Hi guys.  Say I have my swf, and within it is a button, when this button is clicked, would it be possible to load Notepad.exe?  I am not looking to turn my swf into a projector file (think this would make it an .exe).  If this is not possible from within AS3, are there any libraries anyone knows of which could handle this, or maybe even another solution to getting this done.  The main thing is having an swf load a exe, not an exe loading an exe.

Cheers guys

TOPICS
ActionScript
592
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

correct answers 1 Correct answer

LEGEND , Sep 30, 2011 Sep 30, 2011

None of what you aim to accomplish is possible in browser environment in Flash. All local file manipulations can be done only when the user explicitly interacts and permits them. This includes reading directories or downloading images. This is absolutely similar to what you can do in HTML/JavaScript.

Translate
LEGEND ,
Sep 30, 2011 Sep 30, 2011

In AIR you can do that but in browser plugin you cannot - opening executable would a major security hole.

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
Guest
Sep 30, 2011 Sep 30, 2011

So if I change it to an AIR app, this would be possible?  And I couldnt do this through html or something when I embed an swf within a webpage? 

Trying to think of other ways around this.  Would it be possible to run a .bat file from within a swf?  Then the bat file can load the exe.  Or maybe I could load a webpage which automatically executes the exe upon loading?

What I am trying to do is make an online untility.  Basically, the webpage will load and images of different applications will be displayed all appropiately grouped.  When a user clicks on an image (say a windows media player image), then this will be loaded on their system.

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
LEGEND ,
Sep 30, 2011 Sep 30, 2011
LATEST

None of what you aim to accomplish is possible in browser environment in Flash. All local file manipulations can be done only when the user explicitly interacts and permits them. This includes reading directories or downloading images. This is absolutely similar to what you can do in HTML/JavaScript.

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