I am working on a project that has a gallery of images. The client wants users to be able to save the images to their hard drive. Thing is, this is going out on a CD, so it needs to be able to save files from a folder on the CD. There are also a couple of EXE files that they want to be able to “download”. I’m pretty clueless with programming. Can someone give me a quick way of setting up buttons and stuff to do this in AS 2.0?
well, you can always use getURL that will open a browser window and users can save it to the desktop.
www.gotoandlearn.com has an interesting tutorial on how to save images do the desktop from a webcam. you can always adapt the code for your cd.
I don’t know that the fileReference class can be used w/ a cd - flash security issues. Usually to do this, you’ll need a 3rd party project program like Zinc or mProjector - but they’re a bit code intensive and require different code per-platform - Mac and PC (thats the way they used to work a year or so ago, they’ve released new version those).
If a client asks for this type of feature, I know that I need to use a 3rd party app - so this definitely increases the budget. Another solution, if the client doesn’t want to pay, is the old way of just stating in your app “assests can be downloaded directly from the CD - go to My Computer, find the CD icon, blah, blah blah, assets are in teh folder named ‘exe files for download’” or something like that.
I don’t believe getURL will work with a .exe file, I’m not sure. But, when using getURL on a .pdf for example, from a CD, the persons computer will find the default application used, on that specific computer, to open the file. So, it may open in a browser, or it may open in acrobat - and you may get a security warning window. I’d set up some tests in separate flas, burn them to a disc and test before adding to your application.
Hope this helps.