Skip to content

Latest commit

 

History

History
69 lines (40 loc) · 1.43 KB

File metadata and controls

69 lines (40 loc) · 1.43 KB

Library.moveToFolder()

Availability

Flash MX 2004.

Usage

Library.moveToFolder(folderPath [, itemToMove [, bReplace]])

Parameters

folderPath

Type

string

Description

Specifies the path to the folder in the form "FolderName" or "FolderName/FolderName". To move an item to the top level, specify an empty string ("") for folderPath.

itemToMove

Type

string?

Description

Specifies the name of the item to move. If itemToMove is not specified, the currently selected items move. This parameter is optional.

bReplace

Type

boolean?

Description

If an item with the same name already exists, specifying true for the bReplace parameter replaces the existing item with the item being moved. If false, the name of the dropped item changes to a unique name. The default value is false. This parameter is optional.

Returns

true if the item moves successfully; false otherwise.

Type

boolean

Description

Method; Moves the currently selected or specified library item to a specified folder. If the folderPath parameter is empty, the items move to the top level.

Example

The following example moves the item Symbol_1 to the library folder new and replaces the item in that folder with the same name:

fl.getDocumentDOM().library.moveToFolder("new", "Symbol_1", true);