Buttons
A collection of buttons.
Instance
Read Only
Number length
The number of objects in the collection.
Methods
Number count()
Displays the number of elements in the Button.
Button add( Layer layer, LocationOptions at, Mixed reference, Object withProperties )
Creates a new Button
Parameters
Type Name Description 
Button item( Mixed index )
Returns the Button with the specified index or name.
Parameters
Type Name Description 
Button itemByName( String name )
Returns the Button with the specified name.
Parameters
Type Name Description 
Button itemByID( Number id )
Returns the Button with the specified ID.
Parameters
Type Name Description 
Button itemByRange( Mixed from, Mixed to )
Returns the Buttons within the specified range.
Parameters
Type Name Description 
Button firstItem()
Returns the first Button in the collection.
Button lastItem()
Returns the last Button in the collection.
Button middleItem()
Returns the middle Button in the collection.
Button previousItem( Button obj )
Returns the Button with the index previous to the specified index.
Parameters
Type Name Description 
Button nextItem( Button obj )
Returns the Button whose index follows the specified Button in the collection.
Parameters
Type Name Description 
Button anyItem()
Returns any Button in the collection.
Button everyItem()
Returns every Button in the collection.
String toSource()
Generates a string which, if executed, will return the Button.
Button []( Number index )
Returns the Button with the specified index.
Parameters
Type Name Description