[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 575
  • Last Modified:

How do I launch PDF from a flash exe?

I am making a CD using flash executable. I want to launch a .pdf file using a button from the flash stand alone file. I placed the .pdf on a subfolder "fscommand" but still I can't make it work. Any ideas?

Here is my button's as:

on (release) {
fscommand("exec", "print_doc.pdf");
}

What am I doing wrong? or am I missing something else? thanks!
0
Jim_Reynor
Asked:
Jim_Reynor
  • 3
  • 2
3 Solutions
 
Aneesh ChopraCommented:
fscommand('exec','') command will work only in following conditions:

1) it can only execute batch file.
2) batch file must be in "fscommand" folder which must resides beside projector EXe
3) write code to open PDF in batch file


here I have uploaded a working sample:
http://www.4shared.com/file/2290163/323e717f/openpdf_fromprojector.html
0
 
Jim_ReynorAuthor Commented:
Thanks for that quick solution. Now I am having problems in retaining that fullscreen command.

I have these on my first frame:

fscommand("allowscale", false);
fscommand("fullscreen", true);

Do I need to add something so that when the PDF launches and I close it, my flash application is still fullscreen? right now after executing that batch file and launching the pdf... my Flash app resizes to window mode.
0
 
Aneesh ChopraCommented:
this is common behaviour of default fullscreen feature of Flash player..
there is no workaround to make it work as you want using standard flash player...

0
 
Jim_ReynorAuthor Commented:
Would it be possible to launch a printer command this way there is no need to open up a PDF and that the document  then just automatically print?

0
 
Jim_ReynorAuthor Commented:
Expert was helpfull. thanks!
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now