I have created a very simple Flash site that requires a link to a pdf file for download to the end user’s computer. Now, this is quite possibly a really stupid question but, I need to know.
Do I need to do anything in particular to achieve this such as placement in a specific ftp folder or will I require a small snippet of either ActionScript with php, if so, how do I do that, or do I simply add a getURL() and leave the rest to luck?
Sorry if this sounds really dumb but the only stuff on ftp I can find refers to uploading.
Simply use getURL (); to accomplish this. If the end user machine doesn’t have a pdf reader he/she will be prompted to download the file. Otherwise the file will be loaded to a browser+acrobat window.
I have a similar problem:
I am trying to create a download link that overrides the browser’s settings to open an MP3 file (so that my page’s visitor can save a copy of the file, instead of just opening it in a player that may or may not let them save a copy). Essentially, I want my Flash link to have the same affect as selecting “save link as…” in a normal html-based page.