-
getURL problems
I am trying to assign a hyperlink to a button in a flash movie (CS4) that will open a local pdf file in a new browser window. I'm using the script:
on(release){
getURL ("Resume.pdf","_blank");
}
The file "Resume.pdf" is in the same folder as as the swf file, on a CD.
It compiles with no errors, but when I click on the button, IE opens with a blank page and "http://resume.pdf/" in the address bar, in other words it is interpreting it as an HTTP URL and not a local filename.
How do I point it to the local file?
Thanks
CP
-
I dont thing this is possible using AS2 alone.
As3 has a load and save option for other format files and may be possible there there are ways round though.
The following site has a download available for viewing pdfs from flash so you could use than and call in the pdf to that and that swf to a MC in your movie.
Other options a fscommand, using VB.
I may be wrong but searching around thats all I can find.
Trust my code, and not my english.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|