Packageorg.iotashan.nabaztagAPI
Classpublic class NabaztagChoreography

The NabaztagChoreography class is a container used by the NabaztagAPIService to represent a complete choreography action.



Public Properties
 PropertyDefined by
  actions : ArrayCollection
A collection of NabaztagChoreographyCommand objects
NabaztagChoreography
  tempo : Number
The tempo is expressed in Hz.
NabaztagChoreography
Public Methods
 MethodDefined by
  
NabaztagChoreography(tempo:Number = 10, actions:ArrayCollection = null)
Constructor method.
NabaztagChoreography
  
Adds the command at the end of the collection.
NabaztagChoreography
  
addActionAt(action:NabaztagChoreographyCommand, index:Number):void
Adds the command at the specified index.
NabaztagChoreography
  
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
Property detail
actionsproperty
actions:ArrayCollection  [read-write]

A collection of NabaztagChoreographyCommand objects

Implementation
    public function get actions():ArrayCollection
    public function set actions(value:ArrayCollection):void
tempoproperty 
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
Constructor detail
NabaztagChoreography()constructor
public function NabaztagChoreography(tempo:Number = 10, actions:ArrayCollection = null)

Constructor method.

Parameters
tempo:Number (default = 10)
 
actions:ArrayCollection (default = null)
Method detail
addAction()method
public function addAction(action:NabaztagChoreographyCommand):void

Adds the command at the end of the collection.

Parameters
action:NabaztagChoreographyCommand
addActionAt()method 
public function addActionAt(action:NabaztagChoreographyCommand, index:Number):void

Adds the command at the specified index.

Parameters
action:NabaztagChoreographyCommand
 
index:Number
getActionAt()method 
public function getActionAt(index:Number):NabaztagChoreographyCommand

Gets the command at the specified index.

Parameters
index:Number

Returns
NabaztagChoreographyCommand
getChoreography()method 
public function getChoreography():String

Returns this choreography in the proper URL format for use with the Nabaztag API.

Returns
String
removeActionAt()method 
public function removeActionAt(index:Number):void

Removes the command at the specified index.

Parameters
index:Number