Assets

A collection of object library assets.

Methods

AssetanyItem ()
Returns any Asset in the collection.

number count ()
Displays the number of elements in the Asset.

Array of AsseteveryItem ()
Returns every Asset in the collection.

AssetfirstItem ()
Returns the first Asset in the collection.

Assetitem (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.

AssetitemByID (id:
number)
Returns the Asset with the specified ID.

Parameter Type Description
id number The ID.

AssetitemByName (name:
string)
Returns the Asset with the specified name.

Parameter Type Description
name string The name.

Array of AssetitemByRange (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.

AssetlastItem ()
Returns the last Asset in the collection.

AssetmiddleItem ()
Returns the middle Asset in the collection.

AssetnextItem (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.

AssetpreviousItem (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

Leave a Comment

Previous post:

Next post: