Assets

A collection of object library assets.

Methods:

[], anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

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.

Asset everyItem ()

Returns every Asset in the collection.

Asset firstItem ()

Returns the first Asset in the collection.

Asset item (index:Varies LongInteger String)

Returns the Asset with the specified index or name.

Parameter

Type

Description

index

LongInteger

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.

Asset itemByRange (from:Varies Asset LongInteger String, to:Varies Asset LongInteger String)

Returns the Assets within the specified range.

Parameter

Type

Description

from

Asset

LongInteger

String

The Asset, index, or name at the beginning of the range. Can accept: Asset, Long Integer or String.

to

Asset

LongInteger

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.

Object of

Library.assets