I'm using Flash Pro 8 on Win XP.
In my Flash document, I have made several empty movie clips that act like buttons. When one is clicked, I want a local file to be opened (might be a .txt file, for instance).
I set each movieclip's onRelease event to a function that just does:
getURL("file://c:/dev/flash/file.txt", "_blank");
If I do Control->Test Movie, it works - the file opens in a new browser window when I click the button. But when I run the html file in the browser (IE and Firefox), nothing happens when I click the button. I have noticed that getURL works with files that are in the same directory as the Flash files (url=" or url="/flash/file.txt"), but I need it to work with any file on my c drive.
In my Flash document, I have made several empty movie clips that act like buttons. When one is clicked, I want a local file to be opened (might be a .txt file, for instance).
I set each movieclip's onRelease event to a function that just does:
getURL("file://c:/dev/flash/file.txt", "_blank");
If I do Control->Test Movie, it works - the file opens in a new browser window when I click the button. But when I run the html file in the browser (IE and Firefox), nothing happens when I click the button. I have noticed that getURL works with files that are in the same directory as the Flash files (url=" or url="/flash/file.txt"), but I need it to work with any file on my c drive.