juls034
10-26-2007, 02:10 PM
I'm trying to link to some PDF files from buttons that I created in flash. I used the script below:
on (release) {getURL('file.pdf.','_blank');
}
This works beautifully if my swf file and my pdf file are on the same level. The problem comes in when I try to place the pdfs into separate folders. Using the script below worked on a disc that was tested on a PC, but not on a disc tested on a Mac. I need the disc to work on both platforms.
on (release) {getURL('Folder_name/file.pdf.','_blank');
}
Anybody have any ideas why this isn't working? I need the linked pdf files to work on a disc that contains the swf file and the pdfs in separate folders.
Thanks in advance!
juls034
http://www.graphicdesignforum.com/forum/images/statusicon/user_online.gif http://www.graphicdesignforum.com/forum/images/buttons/edit.gif (http://www.graphicdesignforum.com/forum/editpost.php?do=editpost&p=447083) http://www.graphicdesignforum.com/forum/images/buttons/quote.gif (http://www.graphicdesignforum.com/forum/newreply.php?do=newreply&p=447083) http://www.graphicdesignforum.com/forum/images/buttons/quickreply.gif (http://www.graphicdesignforum.com/forum/newreply.php?do=newreply&p=447083)
on (release) {getURL('file.pdf.','_blank');
}
This works beautifully if my swf file and my pdf file are on the same level. The problem comes in when I try to place the pdfs into separate folders. Using the script below worked on a disc that was tested on a PC, but not on a disc tested on a Mac. I need the disc to work on both platforms.
on (release) {getURL('Folder_name/file.pdf.','_blank');
}
Anybody have any ideas why this isn't working? I need the linked pdf files to work on a disc that contains the swf file and the pdfs in separate folders.
Thanks in advance!
juls034
http://www.graphicdesignforum.com/forum/images/statusicon/user_online.gif http://www.graphicdesignforum.com/forum/images/buttons/edit.gif (http://www.graphicdesignforum.com/forum/editpost.php?do=editpost&p=447083) http://www.graphicdesignforum.com/forum/images/buttons/quote.gif (http://www.graphicdesignforum.com/forum/newreply.php?do=newreply&p=447083) http://www.graphicdesignforum.com/forum/images/buttons/quickreply.gif (http://www.graphicdesignforum.com/forum/newreply.php?do=newreply&p=447083)