Opening Word Files

Hi there!

how do I open a word file in Windows XP (and others!) from a button in a flash presentation?

I sow some tutorials but it didn´t work so well…

Is it possible to open it in a Mac too?

THANKS *

xirika

http://www.macromedia.com/support/flash/ts/documents/fscommand_projectors.htm#Exec

nice…but does it open a specific file?

like imagine I want to open a file named “whatever.doc” where do I specify that?!!

it only shows me how to open applications, not files…

hummm…

Note: exec is not capable of opening a specific file with an application, just the application itself. One way to open files is to use exec to launch a Windows batch (BAT) file or Macintosh AppleScript file that then opens files in the desired application. A third-party tool that can open specific files on Windows without using batch files is available from Flashjester.

remember these only work in the projector

Ok thanks, i already work it out that way…but opening files I think is not impossible…check this:

(I get this code fom a tutorial named Open Files from local presentations, and it refers to windows Os including XP and to pdf and word files)

filename = “test.word”;
fscommand (“exec”, "start " + filename;
fscommand (“exec”, "cmd /c " + filename;

BUT IT DIDN’T WORK!!

the tutorial…http://www.actionscript.org/tutorials/beginner/exec_docs/index.shtml

do you know what is this all about?

yea. that’s what you put in the batch file. search the forums for fscommand. this may have been solved already, but like i said, you’re going to have to use a batch file. Flash itself cannot open docs.

hummm…
what’s a batch file?? :confused:

search :sigh:

http://www.kirupaforum.com/forums/search.php?action=showresults&searchid=247372&sortby=lastpost&sortorder=descending

:wink:

are u using flash mx or flash 5?

cuz a flash mx projector is only allowed to open files that are in its same folder inside a folder called “fscommand” ( u create said folder…) i dont know why, maybe cuz of security issues

but i think that flash 5 does open any file.

anyway if u dont get it to work maybe try using getURL???