Packagemochi.as3
Classpublic final class MochiDigits
InheritanceMochiDigits Inheritance Object



Public Properties
 PropertyDefined By
  value : Number
MochiDigits
Public Methods
 MethodDefined By
  
MochiDigits(digit:Number = 0, index:uint = 0)
Method: MochiDigits Construct and initialize the value of a MochiDigit
MochiDigits
  
addValue(inc:Number):void
Method: add Increments the stored value by a specified amount
MochiDigits
  
reencode():void
Method: reencode Reencodes the stored number without changing its value
MochiDigits
  
setValue(digit:Number = 0, index:uint = 0):void
Method: setValue Resets the stored value
MochiDigits
  
toString():String
Method: toString Returns the stored number as a formatted string
MochiDigits
Property Detail
valueproperty
value:Number


Implementation
    public function get value():Number
    public function set value(value:Number):void
Constructor Detail
MochiDigits()Constructor
public function MochiDigits(digit:Number = 0, index:uint = 0)

Method: MochiDigits Construct and initialize the value of a MochiDigit

Parameters
digit:Number (default = 0) — initialization value
 
index:uint (default = 0) — internal use only
Method Detail
addValue()method
public function addValue(inc:Number):void

Method: add Increments the stored value by a specified amount

Parameters

inc:Number — Value to add to the stored variable

reencode()method 
public function reencode():void

Method: reencode Reencodes the stored number without changing its value

setValue()method 
public function setValue(digit:Number = 0, index:uint = 0):void

Method: setValue Resets the stored value

Parameters

digit:Number (default = 0) — initialization value
 
index:uint (default = 0) — internal use only

toString()method 
public function toString():String

Method: toString Returns the stored number as a formatted string

Returns
String