Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 856 Bytes

File metadata and controls

45 lines (26 loc) · 856 Bytes

Library.newFolder()

Availability

Flash MX 2004.

Usage

Library.newFolder([folderPath])

Parameters

folderPath

Type

string?

Description

A string that specifies the name of the folder to be created. If it is specified as a path, and the path doesn’t exist, the path is created. This parameter is optional.

Returns

true if folder is created successfully; false otherwise.

Type

boolean

Description

Method; Creates a new folder with the specified name, or a default name ("untitled folder #") if no folderName parameter is provided, in the currently selected folder.

Example

The following example creates two new library folders. The second folder is a subfolder of the first folder:

fl.getDocumentDOM().library.newFolder("first/second");