Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Site Design / September 2007



Tip: Looking for answers? Try searching our database.

how to attach pdf file?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
meesh meesh - 19 Sep 2007 06:35 GMT
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 - 19 Sep 2007 17:10 GMT
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
maxinak - 20 Sep 2007 05:01 GMT
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!
meesh meesh - 19 Sep 2007 23:16 GMT
thanks so much!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.