| macron 2005-09-19, 7:23 pm |
| i want to open a .pdf file in a blank browser window using a button in my flash
movie. the .pdf sits in the same directory as the .swf. so i put a script on
the button like so
on (release){
getURL("myfile.pdf", "_blank);
}
what happens when you click on the button is this. a new browser window opens
with the name and path of the .pdf file in it, but the pdf doesn't open. i
tested it out on the local machine and on the web server, but the same thing
happened on both. i know i've got the path and the filename correct. i can
also view the .pdf by double clicking the file on my local machine, so the
file's not corrupt or anything.
am i just using the wrong method to open this kind of file?
cheers,
macron
|