Copy link to clipboard
Copied
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
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.
Copy link to clipboard
Copied
In AIR you can do that but in browser plugin you cannot - opening executable would a major security hole.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now