homepage Welcome to WebmasterWorld Guest from 54.227.67.175
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
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?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved