I haven’t for the life of me been able to figure out how to open a file (Non .exe or .swf) with a button from a movie.
Here’s the scenario, I need to open a PDF file by clicking on a button. GetURL won’t do it even if the browser is set to open PDF’s with a plug-in. As far as I can tell FSCommand will only open executables.
I did something like this before, you need to use fscommand to open a .bat file which will open the .PDF file, ill go and look at my file and post back.
You need a button with [AS] on(release){
fscommand(“Exec”,“filename.bat”);
}
[/AS]
Then open notepad and type in the following * START filename.pdf* Then go to save as and type in a file name then .bat
N.B make sure the file that the flash button is opening it is the same name as your .bat file. They both have to be in the same directory.
In my learnings, i have come across this issue, is it possible to do a check for Macintosh or PC, ie, if ur on a mac, open this file, if ur on a pc, open this other file. i know javascript can redirect?.