Library(ライブラリ)のコレクション
Ver. | プロパティ名 | R/O | 値 | 説明 |
---|---|---|---|---|
length | ○ | 数値 | オブジェクト数 |
Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
---|---|---|---|---|---|
パラメータ | 値 | パラメータの説明 | |||
add(fullName, [withProperties]) | Library | 新しいオブジェクトを作成し、それを返す | |||
fullName | ファイル | ファイルのフルパス名 | |||
[withProperties] | Object | プロパティを設定 | |||
anyItem() | Library | どれかのオブジェクトを返す | |||
count() | 数値 | 要素数を返す | |||
everyItem() | Array( Library ) | 全てのオブジェクトを返す | |||
firstItem() | Library | 最初のオブジェクトを返す | |||
item(index) | Library | インデックスまたは名前で指定したオブジェクトを返す | |||
index | 数値, 文字列値 | インデックスまたは名前 | |||
itemByName(name) | Library | 名前で指定したオブジェクトを返す | |||
name | 文字列値 | ||||
itemByRange(from, to) | Array( Library ) | 範囲で指定したオブジェクトを返す | |||
from | Library, 数値, 文字列値 | 範囲の開始 | |||
to | Library, 数値, 文字列値 | 範囲の終了 | |||
lastItem() | Library | 最後のオブジェクトを返す | |||
middleItem() | Library | 真ん中のオブジェクトを返す | |||
nextItem(obj) | Library | 一つ後のオブジェクトを返す | |||
obj | Library | 位置の基準になるオブジェクト | |||
previousItem(obj) | Library | 一つ前のオブジェクトを返す | |||
obj | Library | 位置の基準になるオブジェクト | |||
toSource() | 文字列値 | ソースコードを表す文字列を返す |
ライブラリ
Ver. | プロパティ | R/O | 値 |
---|---|---|---|
parent | ○ | Application | |
assets | ○ | Assets | |
eventListeners | ○ | EventListeners | |
events | ○ | Events |
Ver. | プロパティ名 | R/O | 値 | 説明 |
---|---|---|---|---|
associatedPanel | ○ | Panel | The associated panel. | |
filePath | ○ | ファイル | ファイルパス | |
fullName | ○ | ファイル | フルパス名 | |
index | ○ | 数値 | インデックス | |
isValid | ○ | 真偽値 | オブジェクトが有効かどうか | |
name | ○ | 文字列値 | オブジェクトの名前 | |
properties | Object |
Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
---|---|---|---|---|---|
パラメータ | 値 | パラメータの説明 | |||
addEventListener(eventType, handler, [captures]) | EventListener | EventListenerを作成 | |||
eventType | 文字列値 | ||||
handler | ファイル, JavaScript関数 | ||||
[captures] | 真偽値 | (廃止) | |||
close() | なし | 閉じる | |||
getElements() | Array( Library ) | オブジェクト参照を返す | |||
removeEventListener(eventType, handler, [captures]) | 真偽値 | EventListenerを削除 | |||
eventType | 文字列値 | ||||
handler | ファイル, JavaScript関数 | ||||
[captures] | 真偽値 | (廃止) | |||
store(using, [withProperties]) | Asset | アセットを追加 | |||
using | Array( PageItem, Movie, Sound, Graphic, XMLElement ) | 追加するオブジェクト | |||
[withProperties] | Object | プロパティを設定 | |||
toSource() | 文字列値 | ソースコードを表す文字列を返す | |||
toSpecifier() | 文字列値 | Retrieves the object specifier. |