|
-
Tracing path to a local file problem...
Hi everyone,
Im trying to create an archieve of local documentation with flash AS2.
The script is letting the user to find out files from the computer and assign the files to different categories so that when the user searches for categories, it displays the documents which the user assigned to that specific category before.
I load the files with the script:
Actionscript Code:
import flash.net.FileReference; var listener:Object = new Object(); listener.onSelect = function(file:FileReference):Void { trace("Opened "+file.name); }; listener.onCancel = function(file:FileReference):Void { trace("User cancelled"); }; var fileRef:FileReference = new flash.net.FileReference(); fileRef.addListener(listener); fileRef.browse();
The problem is, I need to display the full path of the files, not only the names. The FileReference class lets only creationDate, creator, modificationDate, name, size and type of the file which the user browses. Does anybody have any idea about how i could trace (or somehow assign as a variable) the full path ("file:///C|/Users/e.veral/Desktop/blah/blah/...")
Any help would be appriciated.
All the best,
Euqon
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|