I’m developing a game add-on/plugin which replaces a built in feature of an online game. The game loads an .swf therefore, my solution also has to be an swf for it to work ‘in-game’.
I would like to be able to have the user press a button in the custom .swf I am making – and this would open an external application (amongst other things). I.e. if there was a button that said Notepad, it would open Notepad.exe on the machine.
My initial thinking was that i could have a XML Socket server ‘daemon’ runnning (c#) , which i could connect to with flash – however, as both the swf and the daemon are local, flash complained and gave this error:
"Error #2010: Local-with-filesystem SWF files are not permitted to use sockets."
The only way i know to fix this – is to change the security settings of flash – not very user friendly!
So! Any thoughts on how I could otherwise go about this? I was thinking a custom http server could do the trick (connected with URLRequest) although i’m not too sure.
Maybe it is possible to use an ExternalInterface class, which based on a NPRuntime API. You also may check a fscommand function. Official tutorials recommend this technics for interaction with C/C++ code.