PDA

View Full Version : How do I link a button to a PDF in Flash?


Heliotrope
11-28-2005, 12:33 PM
Hey guys and girls

I am in need of a little help please? I ma trying to make a cd using flash, everything is linked up apart form a number of pdfs that i need to link too. I am using the following bit of code, but it doesn't seem to work can anyone help me Please?

TRITON_btn.onRelease = function(){
getURL("TRITON_October_edition_Evaluation.pdf","_blank");
};

I hope one of you can help,

Heliotrope

saumya
11-28-2005, 12:38 PM
use fsCommand to launch external applications not geturl.

Scottae
11-28-2005, 03:44 PM
@ saumya - Unfortunately fscommand only works with .exe files. It won't open a pdf.

@ Heliotrope - That should work. Are you sure that is the appropriate path to the pdf file? Does the computer you are testing it out on have Acrobat installed?

Heliotrope
11-28-2005, 05:16 PM
Thanks for your reply earlier by the way, I finally got the link working with the following code

on(press){
getURL("TRITON_October_edition_Evaluation", "_blank")
}

However the next button (also to link to a pdf) uses the same code, with a changed name:

on(press){
getURL("ITRITON_October_edition_Evaluation", "_blank")
}

doesn't work, it has the same properties, has an instance name ending in .btn, but when linked and test published it comesw up that the path is not valid, even though I copy and pasted the name.

This is drivng me nuts, really it is!!!!