An object library.
Go to Property Listing | Method Listing
close, store, toSource, getElements, toSpecifier, addEventListener, removeEventListener
Application, Assets, Boolean, EventListeners, Events, File, Number, Object, Panel, String,
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
assets |
readonly |
A collection of object library assets. |
|
|
associatedPanel |
readonly |
The associated panel. |
|
|
eventListeners |
readonly |
A collection of event listeners. |
|
|
events |
readonly |
A collection of events. |
|
|
filePath |
readonly |
The full path to the file. |
|
|
fullName |
readonly |
The full path to the Library, including the name of the Library. |
|
|
index |
readonly |
The index of the Library within its containing object. |
|
|
isValid |
readonly |
Returns true if the object specifier resolves to valid objects. |
|
|
name |
readonly |
The name of the Library. |
|
|
parent |
readonly |
The parent of the Library (a Application). |
|
|
properties |
read/write |
A property that allows setting of several properties at the same time. |
EventListener addEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Adds an event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The event type. |
|
|
handler |
Varies |
The event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined close ()
Closes the Library.
Library getElements ()
Resolves the object specifier, creating an array of object references.
Boolean removeEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Removes the event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The registered event type. |
|
|
handler |
Varies |
The registered event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
Asset store (using:Array of Varies, withProperties:Object)
Stores the specified object in the library.
|
Parameter |
Type |
Description |
|---|---|---|
|
using |
Array of Varies |
The page item(s) to store. Can accept: Array of PageItems, Movies, Sounds, Graphics or XMLElements. |
|
withProperties |
Initial values for properties of the new Library (Optional) |
String toSource ()
Generates a string which, if executed, will return the Library.
String toSpecifier ()
Retrieves the object specifier.
LibraryPanel.associatedLibrary
Asset.parent
Event.parent
EventListener.parent
MutationEvent.parent