Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How do I launch PDF from a flash exe?

Posted on 2008-10-01
5
Medium Priority
?
573 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 1000 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 1000 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

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
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 learn the basics of creating custom device Racks in Ableton Live. Place instrument(s) and effects onto a track, and select them all by holding the Shift key and clicking on the device title bars: Group them by typing Command-G (Ctrl-G…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Suggested Courses

660 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