Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » open pdf problem


open pdf problem

Reply
  #1 (permalink)  
Old 02-01-08, 05:18 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 706
Thanks: 0
Thanked 0 Times in 0 Posts
open pdf problem

I use a .bat file to open a pdf from my flash standalone (.exe)

this is the link in my exe file:
ActionScript Code:
  1. on (release) {
  2. fscommand("exec", "file.bat");
  3. }

this is the text in file.bat:

Code:
@echo off
start mypdf.pdf
exit
this seems right to me.. why doesn't this work?

_j

Last edited by UnrealEd; 02-01-08 at 05:24 AM. Reason: please use the proper syntax highlighters when posting code
Reply With Quote
  #2 (permalink)  
Old 02-01-08, 05:28 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
where is the file.bat file located?
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 02-01-08, 05:46 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 706
Thanks: 0
Thanked 0 Times in 0 Posts
it's all located in the same folder.
Reply With Quote
  #4 (permalink)  
Old 02-01-08, 06:53 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
try using an absolute path to the .bat file. If that doesn't work: search the web for "fscommand EXEC folder". I was reading some tutorials and posts on this topic, and lots of people were talking about an "fscommand folder". Maybe that will work
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #5 (permalink)  
Old 02-01-08, 06:55 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 706
Thanks: 0
Thanked 0 Times in 0 Posts
i got it fixed.. placed it in the "fscommand" folder.

Now the next issue.. how to fix this on a mac. I found it should be
done with applescript. Anyone an idea how to fix this?...
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
JS script not working properly on IE but working on Firefox!!! sujata_ghosh JavaScript 4 05-21-07 05:46 AM
PDF Generation using PDFLIB raji20 PHP 0 11-29-06 01:17 AM
Open PDF in Separate Window onSubmit trey_anastasio JavaScript 3 05-24-04 07:35 AM


All times are GMT -5. The time now is 06:35 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.