| Previous | Next | |
STF.listFolders(folderName:String) : ArrayfolderName
An array.; ; Lists all sub-folders contained inside the specified folder. This value is returned as a parameter to the registered callback. See the example below or STF.registerCallBack() for more information on return variable handling.
Method; Lists all sub-folders contained inside the specified folder.
The following example lists all sub-folders of a folder.
var Folders;
listFolders_btn.onRelease = function() {
mFile.listFolders(desktopFolderPath);
}
//define the callback
function listOfFoldersCallback(returnValue:Array){
Folders = returnValue;
for (var i=0; Folders[i]; i++)
{
trace(Folders[i]);
}
}
//register the callback
mFile.registerCallBack("listFolders", listOfFoldersCallback, this);| Questions or Feedback? | Previous | Next |