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!
Jim_ReynorAsked:
Who is Participating?
 
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
 
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:
Expert was helpfull. thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.