jayboduke
09-20-2006, 03:38 PM
Hi,
I have got a flash 8 projector running of a CD-ROM, I want to be able to download pdf's from a folder on the CD to the users desktop (or wherever they choose), I have tried using FileReference.download(), but that doesnt work because it needs a http URL for the parameter.
I want to be able to do something like this
var fileRef:FileReference = new FileReference();
var url:String = "pdf/file1.pdf";
if(!fileRef.download(url, "file1.pdf")) {
trace("dialog box failed to open.");
}
But because the URL isnt http, the dialog box is failing to open.
Any help would be greatly appreciated.
I have got a flash 8 projector running of a CD-ROM, I want to be able to download pdf's from a folder on the CD to the users desktop (or wherever they choose), I have tried using FileReference.download(), but that doesnt work because it needs a http URL for the parameter.
I want to be able to do something like this
var fileRef:FileReference = new FileReference();
var url:String = "pdf/file1.pdf";
if(!fileRef.download(url, "file1.pdf")) {
trace("dialog box failed to open.");
}
But because the URL isnt http, the dialog box is failing to open.
Any help would be greatly appreciated.