| Property | Defined By | ||
|---|---|---|---|
| value : Number | MochiDigits | ||
| Method | Defined 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 | ||
| value | property |
value:Number public function get value():Number public function set value(value:Number):void| MochiDigits | () | Constructor |
public function MochiDigits(digit:Number = 0, index:uint = 0)Method: MochiDigits Construct and initialize the value of a MochiDigit
Parametersdigit:Number (default = 0) — initialization value
| |
index:uint (default = 0) — internal use only
|
| addValue | () | method |
public function addValue(inc:Number):voidMethod: add Increments the stored value by a specified amount
Parameters
inc:Number — Value to add to the stored variable
|
| reencode | () | method |
public function reencode():voidMethod: reencode Reencodes the stored number without changing its value
| setValue | () | method |
public function setValue(digit:Number = 0, index:uint = 0):voidMethod: setValue Resets the stored value
Parameters
digit:Number (default = 0) — initialization value
| |
index:uint (default = 0) — internal use only
|
| toString | () | method |
public function toString():StringMethod: toString Returns the stored number as a formatted string
ReturnsString |