Hello everyone, please i just got this project to do a flash animation that includes a button that opens a USB flash drive when its clicked on... I need help on this one cos I've never really heard of it, so please help ok
3:44 pm on Jul 5, 2010 (gmt 0)
I am quite sure that Flash isn't able, or more to the point isn't allowed to access drives and windows functions like that.
The reason for this is security. If flash allowed programmers to access windows functions the potential for bad if Flash was given access to the file system like that is high.
You can check out the fileReference class, but I am not sure if that will be what you need.
3:56 pm on Jul 5, 2010 (gmt 0)
Thank you for your response, where do I get the file reference class though?
4:12 pm on Jul 5, 2010 (gmt 0)
It is built into Flash, I have it in my CS3 version. I am not sure if it is available in lower versions.
You can look it up by opening up flash and open the Flash help window pane. From there just search fileReference, and you will see the class and it's methods and properties listed.
It looks like all you can do with it though is allow the user to reference a file from their computer, much like the <input type="file" /> works in HTML.
You may be able to default it to open to the lettered drive that the flash drive is mounted on.