| Previous | Next | |
Windows: Flash 8 or 9 AS2.0 SWF + mProjector
3.0; Windows 98/ME/NT Support: Flash 7 SWF + mProjector
2.0;
Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector
2.0; replacing mProjector
1.1 async
mFile.listFolders(folderName:String) : ArrayfolderName - Name (including the path) of the folder for which the immediate sub-folders should be returned.
An array.; ;
Method; Lists all sub-folders contained inside the specified folder.
The following example lists all sub-folders in the "Program Files" folder on Windows and "Applications" fodler on the Mac.
var folderName = mSystem.getSpecialFolder("PROGRAM_FILES");
var folders:Array = mFile.listFolders(folderName);
for (var i=0; i<folders.length; i++)
{
mApplication.trace(folders[i]);
}
mProjector Class Basics -- mFile
| Questions or Feedback? | Previous | Next |