This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Flash Site Design > September 2007 > how to attach pdf file?
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 |
how to attach pdf file?
|
|
| meesh meesh 2007-09-19, 3:15 am |
| Hi all,
Just wondering if anyone knows how to create a button action that will open a pdf file in a separate window?
Thanks!
| |
| GAMBRKER 2007-09-19, 6:15 pm |
| You can actually use this actionscript for any url (.html,.pdf,.jpg,etc.).
Just add this to your button:
on(release){
getURL("yourdocument.pdf", "_blank");
}
The quotes contain the URL you are wanted to hit. If your pdf is in the root
folder, leave the location as is. If it is elsewhere, for example, you would
need to put "http://www.thiswebsite.com/folder/anotherdocument.pdf" The
"_blank" is telling the event to load in a new (blank) window.
GAMBRKER
| |
| meesh meesh 2007-09-19, 10:15 pm |
| thanks so much!
| |
| maxinak 2007-09-20, 3:15 am |
| hi,
what do you mean by root folder? is that the folder you have the fla or swf in? or is it on the hosting server? thanks!
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|