This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > September 2005 > problem opening a .pdf with getURL





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author problem opening a .pdf with getURL
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

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews