PDA

View Full Version : Opening a .pdf file using on (release)


Jose Antonio
05-29-2007, 07:04 PM
Hey Folks,

Sorry for the repost, I wanted to Edit as well as Change the Title of the original Thread and I screwed up so please if I've committed some kind of "AS.Org SIN" I strongly apologize.


Okay, bare with me on this one.

Is it possible to specify what program the user uses to open a file, provided the user has the program installed on their computer, of course?

For instance; I want the user to use the Adobe Reader instead of the Adobe Acrobat.

I'm asking this cause it's happening to me, or rather sort of happening to me.

What's been happening, and the reason I posted this thread, is that I have two buttons (one for "resume.doc" and one for "resume.pdf") I can open a copy of my resume.doc file but not it's .pdf version. When I click on the pdf button it spawns a new ie window (I'm using ie 7) and it starts (what appears to be) to open the Acrobat program, not the reader.

The Acrobat never opens, and the ie window, although it shows the files' title on the tab, when you click on the tab it now does nothing; originaly it was opening a blank page when I clicked on the tab.

Here's the code that I'm using:

-for the "resume.doc" button-

on (release){
getURL("resume/resume.doc", "_blank")
{


-for the "resume.pdf" button-

on (release){
getURL("resume/resume.pdf", "_blank")
{


PLEASE, can anyone shead some light on this for me.



Peace
Jose Antonio

codelinker
05-31-2007, 06:08 PM
Check this link

http://www.19.5degs.com/element/216.php

bye :)

Jose Antonio
05-31-2007, 11:37 PM
codelinker,

Thanks for the reply but I'm not trying to Open external applications or documents from a flash projector, I read Jesse's tutorial on that one, just from the .swf.

When I test my work, on my local system, I'm able to open the .doc but not the .pdf; however, I am able to open the .pdf on line, weird?

If you have an explanation for that I would greatly appreciate it, since I spent several hours trying to figure out what the problem was and got nowhere only to find out that it opened on line. I'm able to open .pdf files localy and on line so...


Peace
Jose Antonio

codelinker
06-02-2007, 05:29 AM
Did you try this

fscommand ("exec", "resume/resume.pdf");

Jose Antonio
06-02-2007, 08:06 PM
Did you try this

fscommand ("exec", "resume/resume.pdf");



codelinker,

Thank you again for the reply.

Yes, I tried the fscommand, and it works, as a stand alone executable but that's not how I've coded the on (release) event; then change it, you might say... there's the rub.

I don't know how or even if it's possible to use the "loadMovie" event with an .exe; I tried the only thing I currently know which is - loadMovie("resume/resume.exe", pdfres_MC); - and nothing so....

It's possible my current limited knowledge may be the cause of all my woes. Unless I'm not understanding the fscommand, and it's possible, it only works with executable files (.exe) and not from the .swf file thus the on (release) event.

Again, I am able to open both files "resume.doc" and "resume.pdf" from my website just not locally (on my computer). Perhaps the problem, aside from my current lack of knowledge, is a local one so I guess my question then should be, could there be a setting on my computer, and I would guess it would have to be in my IE settings, that prevents me from opening a .pdf file locally?

And mind you have the Adobe Reader and I can open the "resume.pdf" file with it, so...???????.



Peace
Jose Antonio