ActionScript Reference
com.bjc.ccs1
mx.core.UIComponent | +--com.bjc.ccs1.BJCDigitalMeter
myBJCDigitalMeter.setCallback( "myCallback" ); // Set the function to call on alert
function myCallback( value )
{
trace( "ALERT: " + value ); // This code will run on alert
}
myBJCDigitalMeter.setValue( 100 ); // Set meter valueProperty Summary | |
| public | AlertColor: Number (write-only) |
| This property may be used to set the alert color. | |
| public | BgColor: Number (write-only) |
| This property may be used to set the background color. | |
| public | CallBackFunction: String (write-only) |
| This property may be used to set the function to be called when the meter is given a value within the alert range. | |
| public | DigitsVisible: String (write-only) |
| This property may be used to hide or show the digital numbers. | |
| public | Font: String (write-only) |
| This property may be used to set the text font. | |
| public | FontColor: Number (write-only) |
| This property may be used to set the font color. | |
| public | MaxAlert: Number (write-only) |
| This property may be used to set the maximum alert range value of the meter. | |
| public | MaxValue: Number (write-only) |
| This property may be used to set the maximum value of the meter. | |
| public | MinAlert: Number (write-only) |
| This property may be used to set the minimum alert range value of the meter. | |
| public | MinValue: Number (write-only) |
| This property may be used to set the minimum value of the meter. | |
| public | Title: String (write-only) |
| This property may be used to set the title. | |
| public | TitleVisible: String (write-only) |
| This property may be used to hide or show the title field. | |
Constructor | |
| BJCDigitalMeter ( ) | |
| Constructor | |
Method Summary | |
| public | getValue ( ): Number |
| This method may be used to get the current value of the digital meter. | |
| public | setAlertColor ( col: Number ): Void |
| This method may be used to set the alert range color of the digital meter. | |
| public | setBgColor ( col: Number ): Void |
| This method may be used to set the background color of the digital meter. | |
| public | setCallback ( cb: String ): Void |
| This method may be used to set the function to be called when the meter is given a value within the alert range. | |
| public | setDigits ( view: Boolean ): Void |
| This method may be used to set the visibility of the digital numbers. | |
| public | setScale ( min: Number, max: Number, alertMin: Number, alertMax: Number ): Void |
| This method may be used to set the value and alert ranges. | |
| public | setTitle ( view: Boolean, font: String, color: Number, text: String ): Void |
| This method may be used to set the visibility of the title field and changes the title text. | |
| public | setValue ( value: Number ): Void |
| This method may be used to set the value of the digital meter. | |
|
| This property may be used to set the alert color. |
|
| This property may be used to set the background color. |
|
| This property may be used to set the function to be called when the meter is given a value within the alert range. |
|
| This property may be used to hide or show the digital numbers. |
|
| This property may be used to set the text font. |
|
| This property may be used to set the font color. |
|
| This property may be used to set the maximum alert range value of the meter. |
|
| This property may be used to set the maximum value of the meter. |
|
| This property may be used to set the minimum alert range value of the meter. |
|
| This property may be used to set the minimum value of the meter. |
|
| This property may be used to set the title. |
|
| This property may be used to hide or show the title field. |
|
| Constructor |
|
This method may be used to get the current value of the digital meter.
|
|
|
This method may be used to set the alert range color of the digital meter.
| |||
|
|
This method may be used to set the background color of the digital meter.
| |||
|
|
| This method may be used to set the function to be called when the meter is given a value within the alert range. This method may be used to set the function to be called when the meter is given a value within the alert range. The called function must be in the same timeline as the component or the path to the function must be specified as well.
| |||
|
|
This method may be used to set the visibility of the digital numbers.
| |||
|
|
| This method may be used to set the value and alert ranges. This method may be used to set the minimum value, maximum value, minimum alert value and maximum alert value of the digital meter. The alert range must be within the value range of the meter. The alert range has a defined callback function which is invoked by a value that is within the alert range.
| ||||||||||||
|
|
This method may be used to set the visibility of the title field and changes the title text.
| ||||||||||||
|
|
This method may be used to set the value of the digital meter.
| |||
|