Ask a Question related to Macromedia Flash Flashcom, Design and Development.
-
inwonder #1
Using File.list()
Hi,
Im using FMS 3 on the server side when onConnect occures i need an array of
all file that is the directory root/streams/myApp
how do use the File.list() ? do i need to create a new file just for getting
the list of files of the directory? and how do i get to do that on the
directory i want ? is it like this:
File.list(function(name){ return name.indexOf("streams/myApp/")!=-1);
i so the example in the doc files :
var a = x.currentDir.list(function(name){return name.length==3;});
does x is a File object? and where the currentDir came from its not a File
property?
Please help ...
inwonder Guest
-
File list() error
When I invoke myfile.list() where myfile is a directory, I get the following: File operation File.position failed. File is in closed... -
Creating a File List
Hy, I'm trying to create a extension that has a drop-down list of all the documents of a certain document type, how can I do this. Thanks -
Refresh file list...
I was updating and forgot to add a file. I went to verify the updates and it errored out and said that it could not find that file. I then uploaded... -
Recent File List
Does ID-cs 3.01 have a recent files list? I seem to remember seeing it in the file menu ... but it is no longer there (not even disabled). I... -
File List
I have a public directory on my server where I would like make a link point to it to show a list of files within. The list is to show the file name,... -
abarnert #2
Re: Using File.list()
In SSAS, File objects represent both files and directories.
The "x" in the examples just means "arbitrary thing that has a member of
whatever type we're talking about." In this case, "x" is something that has a
member called "currentDir" that's a File object (presumably representing the
current directory).
I'm pretty sure you can create an equivalent like this:
currentDir = File(".");
Also, your search isn't going to work the way you expected. The find function
doesn't search all subfolders recursively, and the name parameter only gets the
filename (the last component of the path), not the entire pathname. You're
going to want to open streams/myApp as a File, then just list everything in it.
abarnert Guest
-
inwonder #3
Re: Using File.list()
Hi,
first thank, second i'm not sure that File(".") gives the current directory
because when i tried it and then trace x.name i got nothing also it faild open
it. but how do i move to the directory i want the best was if i could create
this file object on the directory where all the files i want are. but how do i
do that . i tried x.position = "/streams/myapp" but i don't think that what it
ment for. so any idea?
inwonder Guest



Reply With Quote

