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!

Opening files through Flash

Status
Not open for further replies.

jocoutts

Technical User
Feb 5, 2002
32
GB
Is it possible to open files other than html and swf through a flash movie?
I am using Flash at the moment to produce an exe. file, and I need to link the user to pdf and word documents on the CD ROM? Is this possible?
Thank you
 
These seem to all work!

fscommand ("exec", "notepad"+chr(9)+"scrolltext.txt");
Will open scrolltext.txt in the same folder as the projector, with notepad (skip the .exe), if notepad is in the c:/windows folder.

fscommand ("exec", "d:/carmen/fish");
Will open fish.exe (another projector .swf).

fscommand ("exec", "D:/Flash/Flashtextfiles/notepad");
Will open a copy of notepad.exe in D:/Flash/Flashtextfiles.

fscommand ("exec", "write"+chr(9)+"d:/carmen/CvF.rtf");
Will open CvF.rtf, with write.exe also situated in the c:/windows folder.

fscommand ("exec", "D:/Flash/Flashtextfiles/notepad"+chr(9)+"D:/Flash/Flashtextfiles/scrolltext.txt");
Will open...

A problem both in the acrobat reader and word, prevent me from trying it out, but they should work in a similar manner, at least on a PC.

If the above don't work, you can allways try the following would should work but first opens an annoying dos windows (for a few seconds!), before opening the application:

fscommand ("exec", "start"+chr(9)+"scrolltext.txt");
Will open scrolltext.txt in it's default program.

Regards,

new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top