Packagecom.whirled.contrib.hackproof
Classpublic class HPNumber
InheritanceHPNumber Inheritance flash.events.EventDispatcher

This class holds a floating point number value. From the point of view of the programmer, it should work just like a normal Number, except that it needs to be accessed using the "value" member and it will dispatch a HackDetected event if the value is tampered with externally.

Also, HPNumbers will not have all of their parts garbage collected, so if a large number of them are used in a program, memory leakage will occur. If you need to use HPNumbers in disposable objects, it is recommended that you use the HPReuseManager to allocate and deallocate HPNumbers as needed.

Under the hood, HPNumber is actually stored using two HPInts.



Public Properties
 PropertyDefined by
  value : Number
Contains the floating-point number value.
HPNumber
Public Methods
 MethodDefined by
  
Creates a new HPNumber with the default value of 0.
HPNumber
  
verifyAll():Boolean
[static] Used to verify the master checksum for HPNumber.
HPNumber
Property detail
valueproperty
value:Number  [read-write]

Contains the floating-point number value.

Implementation
    public function get value():Number
    public function set value(value:Number):void
Constructor detail
HPNumber()constructor
public function HPNumber()

Creates a new HPNumber with the default value of 0.

Method detail
verifyAll()method
public static function verifyAll():Boolean

Used to verify the master checksum for HPNumber. This actually just calls HPInt.verifyAll().

Returns
Boolean