I'm still a newbie at this, so pleasse bear with me. I have a links page on a website for myself. I wish to create a link from a hidden button over the text to a pdf file within the project folder. I keep getting errors saying that it cant find the file and points to an address which is totally wrong. This is the code I am using
var marriages:URLRequest = new URLRequest("marriagesStPauls1837_85.pdf");
This is the message that I get.
can't find the file at /C|/Users/Admin/AppData/Local/Temp/marriagesStPauls1837_85.pdf.
Is this the right way to link a pdf file to flash?
Is there some other code I should be using?
Your coding is correct. check it in browser after publishing the flash.
So why will it not show up when I use control/enter ?
getURL and navigateToURL both with work only in browser becoz it navigate to some other url or other files.