PDA

View Full Version : Opening Word Files...



xirika
February 4th, 2004, 12:28 PM
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

norie
February 4th, 2004, 12:54 PM
http://www.macromedia.com/support/flash/ts/documents/fscommand_projectors.htm#Exec

xirika
February 4th, 2004, 01:02 PM
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...

norie
February 4th, 2004, 01:10 PM
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

xirika
February 4th, 2004, 02:18 PM
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\t" + filename;
fscommand ("exec", "cmd\t/c\t" + 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?

norie
February 4th, 2004, 02:52 PM
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.

xirika
February 5th, 2004, 02:59 PM
hummm...
what's a batch file?? :/


....

lunatic
February 5th, 2004, 04:37 PM
search :sigh:

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

;)

flash4food
February 6th, 2004, 05:07 PM
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????