Solved

How do I launch PDF from a flash exe?

Posted on 2008-10-01
5
562 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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,…
In this article, I'll explain how to setup a Plex Media Server (https://plex.tv/) on a Redhat (Centos) 7 based NAS with screenshots to help those looking for assistance.  What is Plex? If you aren't familiar with Plex, it’s a DLNA media serv…
Viewers will learn how to create burn videos onto a DVD using Nero Suite including creating a DVD menu and chapters.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now