Solved

How do I launch PDF from a flash exe?

Posted on 2008-10-01
5
566 Views
Last Modified: 2012-05-05
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
Comment
Question by:Jim_Reynor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 34

Assisted Solution

by:Aneesh Chopra
Aneesh Chopra earned 250 total points
ID: 22617404
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
 

Author Comment

by:Jim_Reynor
ID: 22617773
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
 
LVL 34

Assisted Solution

by:Aneesh Chopra
Aneesh Chopra earned 250 total points
ID: 22620742
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
 

Accepted Solution

by:
Jim_Reynor earned 0 total points
ID: 22654520
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
 

Author Comment

by:Jim_Reynor
ID: 22671912
Expert was helpfull. thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
Viewers will get an overview of how to make and use Drum Racks in Ableton Live. Load new Drum Rack into empty MIDI track: Fill rack with audio samples: Re-arrange sample slots as necessary: Adjust parameters of each slot to tailor each sound a…
Viewers will learn the basics of using Ableton Live's advanced sampler instrument, Sampler. Load new Sampler into an empty MIDI track: Select a sample and drop it into sample window in Sampler: Adjust pitch if necessary with Root Key setting: …

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question