FMXISDigits

Availability

Flash Player 6 r65.

Description

This class implements a simple digital display (positive and negative numbers, as integers or floating point). You set values using the val property, and the display updates itself automatically.

Users can change the appearance by specifying a linkage ID to a movie clip containing the digits and background and decimal point (defDigPlusBkgnd), or, for FLA's, by modifying:

The class has one event -- DigOverflow -- indicating value cannot be represented in the specified number of digits. This occurs on positive and negative values that do not fit in the display window (negative numbers require one more digit for the minus sign). The value is passed to the handler as the event value (ev.val). The event name can be changed (if desired) in the component property inspector, on initialization through the initObject of attachMovie(), or programmatically through the respective property.

Code Hinting

The suffix of variables recognized for codehinting purposes as FMXISDigit's is _digs.