Hi Guys,
I hope you can help me with some problem. I have to make a autorun flash presentation that will load from CD. In the presentation there have to be option to download a couple of PDF files. The FileReference.download() method takes two options - URLRequest and name. The problem is that if I try to pass to the URLRequst just string (like “assets/someFile.pdf”) the file reference will not recognise it and throws error:
Error: Error #2039: Invalid remote URL protocol. The remote URL protocol must be HTTP or HTTPS.
at flash.net::FileReference/download()
at DownloadButton/downloadFile()
because actually the CD is not an server, but part of the operationg system. I use Flash CS5 with default compilator to compile the code and it need to be flash (not adobe AIR) because then I’l have to make it autorun. Does anybody knows how can I solve this problem?
Cheers, Ico