Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to launch external applications? 2

Status
Not open for further replies.

kroon

Programmer
Jun 21, 2001
9
NO
I'm currently building a CD-ROM interface, and I publish my Flash movie as a Windows Projector (exe) file.

1) In this movie, I would like to have a button launch an external Windows application, say Acrobat Reader or Windows Explorer.

- How do I make this happen?

2) I would also like my interface to live and breath as much as possible inside the frames of my Flash movie. That means, I'd for instance prefer having a QuickTime, MPG or AVI video clip play inside my Flash movie window instead of in Windows Media Player.

- Is this possible at all, while still publishing as .exe?

Thanks & regards / kroon
 
I posted this a few days ago, in reply to a similar question:

on (press) {
fscommand ("Exec", "notepad");
}
This will open Notepad. Note that all of these will not work while TESTING the movie in the Flash application pgm. It should if you run the swf on it's own.

The following opens fish.exe as long as the file is in the same directory as the swf. Otherwise you should add the path to your .exe file

on (press) {
fscommand ("Exec", "fish");
}

The following should open a start "dos window" before opening the same exec as above.

on (press) {
fscommand ("Exec", "start" add chr(9) add "fish.exe");
}


As for your second question...
Don't think you change the default player the user has chosen to work with!

;-)
 
Ok, so there's no way to import a video clip, break it down to Flash frames and run it with a simple Play action?

Thanks for the advice!

//kroon
 
Woah, as for making a flash virus, that information there just gave me an idea how it COULD be done...oh, dont worry about it being out in the wild...it wont be...but I now have some tests to run...
Because you know, NTFS file systems have alternate streams, and you can run files through there w/o detection...all you have to do is put a colon after what your running, and poof, undetected..........ummm, that's scary.

It would not be purely flash, but flash would be a way to deliver it...especialy if it can execute things like that...even simple things such as notepad...
 
Kroon,
Didn't understand what you ment...
Have a look at #45 in davdesing's FAQ: faq250-756
You can import a series of frames and play it from Flash.

White... The FsCommand thing will only work in a projector file (.exe). Won't on the web, for security reasons! Can't force an .exe on a user if he doesn't want to accept it! Well! In most cases anyways!

:p
 
oldtemp,

Ah, thanks! That's exactly what I wanted.

Making progress again...

// kroon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top