Interface FlashLibrary

Index

Properties

Methods

Properties

public items: FlashItem[]

Property; an array of item objects in the library.

Methods

public addItemToDocument(position: FlashPoint, namePath?: string): boolean

Parameters

Returns

boolean

public addNewItem(type: string, namePath?: string): boolean

"video", "movie clip", "button", "graphic", "bitmap", "screen", and "folder"

Parameters

  • type: string
  • namePath?: string optional

Returns

boolean

public deleteItem(namePath?: string): boolean

Parameters

  • namePath?: string optional

Returns

boolean

public duplicateItem(namePath: string): boolean

Method; makes a copy of the currently selected or specified item. The new item has a default name (such as item copy) and is set as the currently selected item. If more than one item is selected, the command fails.

Parameters

  • namePath: string

Returns

boolean

public editItem(namePath?: string): boolean

Parameters

  • namePath?: string optional

Returns

boolean

public expandFolder(bExpand: boolean, bRecurseNestedParents?: boolean, namePath?: string): boolean

Parameters

  • bExpand: boolean
  • bRecurseNestedParents?: boolean optional
  • namePath?: string optional

Returns

boolean

public findItemIndex(namePath: string): number

Parameters

  • namePath: string

Returns

number

public getItemProperty(property: string): string

Parameters

  • property: string

Returns

string

public getItemType(namePath?: string): string

Parameters

  • namePath?: string optional

Returns

string

public getSelectedItems(): FlashItem[]

An array of values for all currently selected items in the library.

Returns

FlashItem[]

public importEmbeddedSWF(linkageName: string, swfData: Array<any>, libName?: string)

Parameters

  • linkageName: string
  • swfData: Array<any>
  • libName?: string optional

public itemExists(namePath: string): boolean

Parameters

  • namePath: string

Returns

boolean

public moveToFolder(folderPath: string, itemToMove?: string, bReplace?: boolean): boolean

Parameters

  • folderPath: string
  • itemToMove?: string optional
  • bReplace?: boolean optional

Returns

boolean

public newFolder(folderPath?: string): boolean

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.

Parameters

  • folderPath?: string optional

Returns

boolean

public renameItem(name: string): boolean

Method; renames the currently selected library item in the Library panel.

Parameters

  • name: string

Returns

boolean

public selectAll(bSelectAll?: boolean)

Method; selects or deselects all items in the library.

Parameters

  • bSelectAll?: boolean optional

public selectItem(namePath: string, bReplaceCurrentSelection?: boolean, bSelect?: boolean): boolean

Method; selects a specified library item.

Parameters

  • namePath: string
  • bReplaceCurrentSelection?: boolean optional
  • bSelect?: boolean optional

Returns

boolean

public selectNone()

Method; deselects all the library items.

public setItemProperty(property: string, value: any)

Method; sets the property for all selected library items (ignoring folders).

Parameters

  • property: string
  • value: any

public updateItem(namePath: string): boolean

Method; updates the specified item.

Parameters

  • namePath: string

Returns

boolean