ActionScript Reference
com.bjc.ccs1
mx.core.UIComponent | +--com.bjc.ccs1.BJCPollMeter
myBJCPollMeter.setCallback( "myCallback" ); // Set the function to call on alert
function myCallback( value )
{
trace( "ALERT: " + value ); // This code will run on alert
}
myBJCPollMeter.addValue( 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 | FeederLength: Number (write-only) |
| This property may be used to set the width of the value area in pixels. | |
| 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 | Mode: String (write-only) |
| This property may be used to set the meter mode. | |
| public | PollColor: Number (write-only) |
| This property may be used to set the poll color. | |
| public | SampleRate: Number (write-only) |
| This property may be used to set the sample rate (in milliseconds) of the meter. | |
| public | Separators: Number (write-only) |
| This property may be used to set amount of separators. | |
| 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 | |
| BJCPollMeter ( ) | |
| Constructor | |
Method Summary | |
| public | addValue ( value: Number ): Void |
| This method may be used to add a value to the poll meter. | |
| public | clear ( ): Void |
| This method may be used to clear the poll sheet. | |
| public | getValue ( ): Number |
| This method may be used to get the current value of the poll meter. | |
| public | setBgColor ( col: Number ): Void |
| This method may be used to set the background color of the poll 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 | setMode ( mod: String ): Void |
| This method may be used to set mode of the poll meter. | |
| public | setPollColor ( pCol: Number, aCol: Number ): Void |
| This method may be used to set the poll color and alert color of the poll meter. | |
| public | setSampleRate ( value: Number ): Void |
| This method may be used to set the amount of milliseconds between adding values. | |
| public | setScale ( min: Number, max: Number, aMin: Number, aMax: Number ): Void |
| This method may be used to set the value and alert ranges. | |
| public | setSeparators ( amount: Number ): Void |
| This method may be used to set amount of separators in the meter. | |
| 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. | |
|
| 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 set the width of the value area in pixels. |
|
| 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 meter mode. |
|
| This property may be used to set the poll color. |
|
| This property may be used to set the sample rate (in milliseconds) of the meter. |
|
| This property may be used to set amount of separators. |
|
| 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 add a value to the poll meter. This method may be used to add a value to the poll meter. If the poll meter mode is set to 'Automatic', the poll meter will add polls indicating the given value continuously at the spesified speed rate. Otherwise the poll meter will add only one poll indicating the given value.
| |||
|
|
This method may be used to clear the poll sheet.
|
|
|
This method may be used to get the current value of the poll meter.
|
|
|
This method may be used to set the background color of the poll 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 mode of the poll meter. This method may be used to set mode of the poll meter. The automatic mode will add polls continuously at the current value. The poll adding speed is spesified in the component parameters. The manual mode adds only one poll at a time with the addValue method.
| |||
|
|
This method may be used to set the poll color and alert color of the poll meter.
| ||||||
|
|
This method may be used to set the amount of milliseconds between adding values.
| |||
|
|
| 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 poll 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 amount of separators in the meter.
| |||
|
|
This method may be used to set the visibility of the title field and changes the title text.
| ||||||||||||
|