Welcome to WebmasterWorld Guest from 220.127.116.11 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
use Actionscript to point to Flash Drive Flash drive elgaxton msg:4164739 1:18 pm on Jul 5, 2010 (gmt 0) 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 Thanks
Demaestro msg:4164805 3:44 pm on Jul 5, 2010 (gmt 0)
elga, 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. elgaxton msg:4164813 3:56 pm on Jul 5, 2010 (gmt 0)
Thank you for your response, where do I get the file reference class though? thanks Demaestro msg:4164826 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. eelixduppy msg:4167718 3:15 pm on Jul 10, 2010 (gmt 0)
Is this an Adobe AIR application?