|
|||
|
:-[ Hello,
This might be easy question to most of you. But to me, I've been trying very hard to get this thing through. Please excuse me as I'm new in this software. Ok, my question is how to run a pdf document or exe file within Flash projector that is compiled with SWFKit ? Below are the codes that I've created. Please help me to get this through. Thanks in advance. In Flash, I've created a button and here are the codes in the button: on (release) { fscommand("FFish_Run", "DW4_tutorial"); } In SWFKit, I've added a script called "DW4_tutorial" and here are the codes: var path = getAppDir(); path += "Reference\\Dreamweaver 4\\DW4_tutorial.pdf"; //trace(path); //Dialogs.msgBox(path); app = Shell.run(path); I've placed the compiled projector in the root directory. I've used the Dialogs.msgBox() function to test the path and the path is absolutely correct. But the pdf document doesn't launch. Can anyone please help me to find out what went wrong with these codes ? Thank you very much. |
|
|||
|
Hello,
Sorry everybody. I've used the wrong function. The function "Shell.run" is only meant for running exe file. To open pdf or other documents, I should used "Shell.open". Anyway, thanks. |
|
|||
|
Hi meester,
Thanks for replying. I would like to learn more on how to display pdf in Flash projector. Can you send me some example on this topic ? My email address is alaster2@hotmail.com. Thanks in advance. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|