[FMX]How might I open an outside file?

I want to open an outside pdf file located in the same dir as the flash movie… how would I go about doing that? I’m pretty sure its done with action script

use getURL

getURL(“myfile.pdf”);

that only sorta worked, it opens up Opera and tells me to downlaod the file. I want it to open in the default viewer right when i click the button, and btwe this file will be on a cd so the program is gonna be like a menu system type dealie

What is happening now, is that you don’t have the acrobat reader installed (or at least installed for Opera, which is your default web browser), so it is trying to d/l the Acrobat player so you can view the pdf.

Since you are going to put this on CD, you will not be able to know what is installed on what computer, so this may be a problem. You may wish to create something similar to the .pdf, only in Flash, that way you are sure they have the player…

Rev

so there is no way of making it open in whatever the default viewer is?

you have no way to know if the user has the needed default viewer (pdf uses the Adobe Acrobat Reader), is the problem.

The browser will find the correct viewer, if it is installed. If not installed, the user is generally prompted to d/l the viewer.

Rev

but thats not waht it is downloading, when i click the button it tells me that im downloading the pdf file fomr http://localhost/name.pdf, and im including acrobat reader on the cd so it shouldnt be a problem. Just think of the pdf as a txt file, and tell me how to open the txt file in a new notepad window