GODPAPER | All Packages | All Classes | Index | Frames No Frames |
MochiDigits

Package | mochi.as3
Class | public final class MochiDigits
Inheritance | MochiDigits Object

Public Properties

| Property | Defined By
--- | --- | ---
|  | value : Number | MochiDigits

Public Methods

| 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

Property Detail

value | property

`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`

Thu Jan 16 2014, 01:11 PM +08:00