Welcome to WebmasterWorld Guest from 54.205.170.21

Forum Moderators: open

Message Too Old, No Replies

use Actionscript to point to Flash Drive

Flash drive

   
1:18 pm on Jul 5, 2010 (gmt 0)

5+ Year Member



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
3:44 pm on Jul 5, 2010 (gmt 0)

WebmasterWorld Senior Member demaestro is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.
3:56 pm on Jul 5, 2010 (gmt 0)

5+ Year Member



Thank you for your response, where do I get the file reference class though?

thanks
4:12 pm on Jul 5, 2010 (gmt 0)

WebmasterWorld Senior Member demaestro is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.
3:15 pm on Jul 10, 2010 (gmt 0)

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 5+ Year Member



Is this an Adobe AIR application?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month