Assets

A collection of object library assets.

Methods:

count, item, itemByName, itemByID, itemByRange, firstItem, lastItem, middleItem, previousItem, nextItem, anyItem, everyItem, 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)

Returns the Asset with the specified index or name.

Parameter

Type

Description

index

Varies

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, to:Varies)

Returns the Assets within the specified range.

Parameter

Type

Description

from

Varies

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

to

Varies

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