MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 258

Extending flash
Table of Contents

Advertisement

Description
Method; creates one or more folders at the specified location.
You can create multiple folders at one time. For example, the following command creates both
the MyData and the TempData folders if they don't already exist:
FLfile.createFolder("file:///c|/MyData/TempData")
Example
The following example creates two subfolders under the configuration folder (fl.configURI).
fl.trace(FLfile.createFolder(fl.configURI+"folder01/subfolder01"));
The following example attempts to create a folder called tempFolder at the root level on
the C drive and displays an alert box indicating whether the operation was successful.
var folderURI = "file:///c|/tempFolder";
if (FLfile.createFolder(folderURI)) {
alert("Created " + folderURI);
}
else {
alert(folderURI + " already exists");
}
See also
,
FLfile.remove()
FLfile.write()
FLfile.exists()
Availability
Flash MX 2004 7.2.
Usage
FLfile.exists( fileURI )
Parameters
A string, expressed as a file:/// URI, that specifies the file you want to verify.
fileURI
Returns
A Boolean value of
true
Description
Method; determines whether a specified file exists.
258
Objects
if successful; false otherwise.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents