nsmdesigns
05-26-2007, 11:41 PM
Hi all
I've read over a lot of threads on how to do this, but for the most, the tips don't indicate what version of projector they work with. So I'm not sure if I've set this up right.
I'm using Flash MX and the projector .exe file for export. The end user is a CD-ROM on Windows XP.
I have a bunch of pdf files that should be opened in Acrobat reader. It is assumed that reader is installed on the end user. I might just include a button to install it if they know they don't have it.
Anyway, I'm using the following action on the button:
on (release) {
fscommand ("exec","test.bat");
}
In the folder, I have created a fscommand folder. In it is a batch file:
@echo off
start ../test.pdf
exit
The test.pdf is in the parent folder, along with the .exe projector file.
If I run the batch file in windows, the pdf file opens in Acrobat, no problem. However, when I click the button in projector, a DOS window flashes then disappears, and nothing else happens. So it seems the batch file is running, but not doing its thing.
What do I need to do to make this work through projector?
I need a fairly simple solution, as there are a lot of pdf files. Creating a small batch file for each is ok, but I don't really want to do more work than that.
Thanks guys!
edit: I also can not use converting the pdf's into swf's as a solution. There are about 1200 pdf's in total, and I have to link the flash file to about 20 of them. Those 20 pdf's link to all the others, and they are being generated by the client. I only have to worry about linking to the 20 "parent" pdf's.
I've read over a lot of threads on how to do this, but for the most, the tips don't indicate what version of projector they work with. So I'm not sure if I've set this up right.
I'm using Flash MX and the projector .exe file for export. The end user is a CD-ROM on Windows XP.
I have a bunch of pdf files that should be opened in Acrobat reader. It is assumed that reader is installed on the end user. I might just include a button to install it if they know they don't have it.
Anyway, I'm using the following action on the button:
on (release) {
fscommand ("exec","test.bat");
}
In the folder, I have created a fscommand folder. In it is a batch file:
@echo off
start ../test.pdf
exit
The test.pdf is in the parent folder, along with the .exe projector file.
If I run the batch file in windows, the pdf file opens in Acrobat, no problem. However, when I click the button in projector, a DOS window flashes then disappears, and nothing else happens. So it seems the batch file is running, but not doing its thing.
What do I need to do to make this work through projector?
I need a fairly simple solution, as there are a lot of pdf files. Creating a small batch file for each is ok, but I don't really want to do more work than that.
Thanks guys!
edit: I also can not use converting the pdf's into swf's as a solution. There are about 1200 pdf's in total, and I have to link the flash file to about 20 of them. Those 20 pdf's link to all the others, and they are being generated by the client. I only have to worry about linking to the 20 "parent" pdf's.