Assets
QuickLinks
Properties
Property | Type | Access | Description |
---|---|---|---|
length | number | readonly | The number of objects in the collection. |
Methods
Instances
Asset [] (index:
number)
Returns the Asset with the specified index.
Parameter | Type | Description |
---|---|---|
index | number | The index. |
Asset anyItem ()
Returns any Asset in the collection.
number count ()
Displays the number of elements in the Asset.
Array of Asset everyItem ()
Returns every Asset in the collection.
Asset firstItem ()
Returns the first Asset in the collection.
Asset item (index:
any)
Returns the Asset with the specified index or name.
Parameter | Type | Description |
---|---|---|
index | Long Integer String | The index or name. Can accept: Long Integer or String. |
Asset itemByID (id:
number)
Returns the Asset with the specified ID.
Parameter | Type | Description |
---|---|---|
id | number | The ID. |
Asset itemByName (name:
string)
Returns the Asset with the specified name.
Parameter | Type | Description |
---|---|---|
name | string | The name. |
Array of Asset itemByRange (from:
any, to:
any)
Returns the Assets within the specified range.
Parameter | Type | Description |
---|---|---|
from | Asset Long Integer String | The Asset, index, or name at the beginning of the range. Can accept: Asset, Long Integer or String. |
to | Asset Long Integer String | The Asset, index, or name at the end of the range. Can accept: Asset, Long Integer or String. |
Asset lastItem ()
Returns the last Asset in the collection.
Asset middleItem ()
Returns the middle Asset in the collection.
Asset nextItem (obj:
Asset)
Returns the Asset whose index follows the specified Asset in the collection.
Parameter | Type | Description |
---|---|---|
obj | Asset | The Asset whose index comes before the desired Asset. |
Asset previousItem (obj:
Asset)
Returns the Asset with the index previous to the specified index.
Parameter | Type | Description |
---|---|---|
obj | Asset | The index of the Asset that follows the desired Asset. |
string toSource ()
Generates a string which, if executed, will return the Asset.
Element of
Library.assets
Jongware, 20-Jun-2010 v3.0.3d | Contents :: Index |