PDA

View Full Version : [AS3] Opening local shortcuts...


cmoney83
04-06-2009, 11:17 PM
Ok I have a very unique as3 request that I can't seem to find a direct answer to, mainly because I am not even sure if it is possible at all. Here is what I am trying to do:

I am running Serious Samurize, which allows me to pin a flash movie player to the desktop... I would like to make an interactive desktop that will launch local shortcuts on my computer; however, if I use the URLrequest method it attempts to launch the shortcuts into my web browser (which obviously cannot display the program output). So is there any way to have it open in the Windows explorer just like when you click an icon on the desktop?? I have read something about having to create a projector app to do so and use a batch file, but this will not work for me, as the movie player requires a .swf file. Thanks in advanced... and I apologize ahead of time if this has already been answered a 100 times.

jsimpson
04-06-2009, 11:51 PM
Flash has security settings that prevent you from accessing files to make it safer for end users to browse websites. If you were making an Adobe Air program you could run files.

It might be possible if you were using internet explorer as your default browser, and you knew the direct path to the shortcut you wanted. But you'd get warning popups from internet explorer about running exe files, etc. So it wouldn't be smooth.

I'm just gonna say this isn't possible.

cmoney83
04-07-2009, 12:51 PM
Ok, that is what I thought from what I have gathered from other sites... thanks for the quick reply.

northcode
04-07-2009, 06:07 PM
You can create a projector that communicates with your SWF via a local connection object. The projector would act like a proxy for your SWF and use fscommand to EXEC BAT files that will launch the local shortcuts.

cmoney83
04-08-2009, 08:28 PM
thank you very much, I think that using the projector with a local connection object will work perfectly...now I just need to do some reading up on the subject so that I can implement it properly