Package | org.iotashan.nabaztagAPI |
Class | public class NabaztagChoreography |
Property | Defined by | ||
---|---|---|---|
actions : ArrayCollection
A collection of NabaztagChoreographyCommand objects
| NabaztagChoreography | ||
tempo : Number
The tempo is expressed in Hz.
| NabaztagChoreography |
Method | Defined by | ||
---|---|---|---|
NabaztagChoreography(tempo:Number = 10, actions:ArrayCollection = null)
Constructor method.
| NabaztagChoreography | ||
addAction(action:NabaztagChoreographyCommand):void
Adds the command at the end of the collection.
| NabaztagChoreography | ||
addActionAt(action:NabaztagChoreographyCommand, index:Number):void
Adds the command at the specified index.
| NabaztagChoreography | ||
getActionAt(index:Number):NabaztagChoreographyCommand
Gets the command at the specified index.
| NabaztagChoreography | ||
getChoreography():String
Returns this choreography in the proper URL format
for use with the Nabaztag API.
| NabaztagChoreography | ||
removeActionAt(index:Number):void
Removes the command at the specified index.
| NabaztagChoreography |
actions | property |
actions:ArrayCollection
[read-write]A collection of NabaztagChoreographyCommand objects
Implementation public function get actions():ArrayCollection
public function set actions(value:ArrayCollection):void
tempo | property |
tempo:Number
[read-write]The tempo is expressed in Hz. A value of 10 would represent a tempo of a tenth of a second.
Implementation public function get tempo():Number
public function set tempo(value:Number):void
NabaztagChoreography | () | constructor |
public function NabaztagChoreography(tempo:Number = 10, actions:ArrayCollection = null)
Constructor method.
Parameterstempo:Number (default = 10 )
|
|
actions:ArrayCollection (default = null )
|
addAction | () | method |
public function addAction(action:NabaztagChoreographyCommand):void
Adds the command at the end of the collection.
Parametersaction:NabaztagChoreographyCommand |
addActionAt | () | method |
public function addActionAt(action:NabaztagChoreographyCommand, index:Number):void
Adds the command at the specified index.
Parametersaction:NabaztagChoreographyCommand |
|
index:Number |
getActionAt | () | method |
public function getActionAt(index:Number):NabaztagChoreographyCommand
Gets the command at the specified index.
Parametersindex:Number |
NabaztagChoreographyCommand |
getChoreography | () | method |
public function getChoreography():String
Returns this choreography in the proper URL format for use with the Nabaztag API.
ReturnsString |
removeActionAt | () | method |
public function removeActionAt(index:Number):void
Removes the command at the specified index.
Parametersindex:Number |