Library
An object library.
Go to Property Listing | Method Listing
Methods:
addEventListener, close, getElements, removeEventListener, store, toSource, toSpecifier
Objects:
Assets, Boolean, EventListeners, Events, File, Number, Object, Panel, String
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
A collection of object library assets. |
||
readonly |
The associated panel. |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
The full path to the file. |
||
readonly |
The full path to the Library, including the name of the Library. |
||
readonly |
The index of the Library within its containing object. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
readonly |
The name of the Library. |
||
readonly |
The parent of the Library (a Application). |
||
read/write |
A property that allows setting of several properties at the same time. |
Method Listing
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
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 File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
Asset store (using:Array of Varies PageItems Graphics Movies Sounds XMLElements, withProperties:Object)
Stores the specified object in the library.
Parameter |
Type |
Description |
---|---|---|
using |
Array of PageItems |
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.
Object of
LibraryPanel.associatedLibrary
Asset.parent
Event.parent
EventListener.parent
MutationEvent.parent