Assets
A collection of object library assets.
Go to Property Listing | Method Listing
Methods:
[], anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
The number of objects in the collection. |
Method Listing
Asset [] (index:Number)
Returns the Asset with the specified index.
Parameter |
Type |
Description |
---|---|---|
index |
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 |
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 |
The ID. |
Asset itemByName (name:String)
Returns the Asset with the specified name.
Parameter |
Type |
Description |
---|---|---|
name |
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 |
LongInteger |
The Asset, index, or name at the beginning of the range. Can accept: Asset, Long Integer or String. |
to |
LongInteger |
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 |
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 |
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