Jump to content

PDF Link in Flash Website - Help Please


jonny-o

Recommended Posts

Hi,

 

I am wanting to know if possible, and how to, add a link under a menu in Flash, so that when clicked on it, it open a .swf or .pdf document, forexample if you clicked on a hyperlink in a HTML website, it opens up a .pdf document. I have tried and searched for a solution online for the last 3 weeks, and is quite frankly fedup searching. I have tried creating a button and then inserting "Download PDF". I have tried to drag and drop the .swf documents, but then it is all over the place. Like I said, all I would like to do is have the name of the document, then as soon as someone clicks on it, it will either open up the swf or pdf or ask what they would liek to do. Even if I have to convert the pdf's to another format if swf is not useful, then that would so help me out heaps too.

 

Cheers

 

Jonny O

Link to comment
Share on other sites

Like I said, all I would like to do is have the name of the document, then as soon as someone clicks on it, it will either open up the swf or pdf or ask what they would liek to do.

Have you tried "Get URL" action for the button (with the full path to your .pdf or .swf file?

Link to comment
Share on other sites

  • 1 month later...

Hi,

 

Sorry for taking so long to post a reply. I tried what you suggested above, and it works to an extend, except the button does not perform the action by opening the PDF file. It comes up with this error each time I try and publish the website. Obviously I must be missing some more commands in the Get URL action somehow:

 

"Statement must appear within on handler" and it highlightes this part of the code "ttffpButton_btn.onRelease=function(){"

 

Any suggestions what may be wrong there possibly?

 

Anybody's help would be muchly appreciated.

 

Cheers

Link to comment
Share on other sites

you need to go back to basics: watch or read a tutorial on Flash buttons (google "Flash button tutorials", and not only watch but create the actual button and assign it the actions getURL.

Here is just one of many tutorials. It describes very basics. But make sure that you pick tutorial for your version of Flash so it would be easy for you to see where you are making the mistake in your script.

Link to comment
Share on other sites

Hi,

 

Just wanted to let you know this worked perfectly fine for me. I can now open those documents & external URL's very happily - Yay!!! haha I can't believe something so small and simple was so frustrating hehe

 

Thank You very very much for your help again :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...