Welcome to WebmasterWorld Guest from 107.20.54.98

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)

New User

5+ Year Member

joined:Oct 16, 2009
posts: 23
votes: 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
3:44 pm on July 5, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 15, 2003
posts:2606
votes: 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.
3:56 pm on July 5, 2010 (gmt 0)

New User

5+ Year Member

joined:Oct 16, 2009
posts:23
votes: 0


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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 15, 2003
posts:2606
votes: 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.
3:15 pm on July 10, 2010 (gmt 0)

Senior Member

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

joined:Nov 12, 2005
posts:5966
votes: 0


Is this an Adobe AIR application?