ActionScript Reference
com.bjc.ccs1
mx.core.UIComponent | +--com.bjc.ccs1.BJCWheel
myBJCWheel.setCallback( "myCallback" ); // Set the function to call on wheel dragging
function myCallback( value )
{
trace( "VALUE: " + value ); // This code will run when the wheel is dragged
} Property Summary | |
| 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 wheel is dragged. | |
| 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 | Maximum: Number (write-only) |
| This property may be used to set the maximum value of the wheel. | |
| public | Minimum: Number (write-only) |
| This property may be used to set the minimum value of the wheel. | |
| public | Mode: String (write-only) |
| This property may be used to set the wheel mode. | |
| public | Separators: Number (write-only) |
| This property may be used to set amount of separators. | |
| public | StartingValue: Number (write-only) |
| This property may be used to set the starting value of the wheel. | |
| public | Steps: Number (write-only) |
| This property may be used to set the amount of snap points. | |
| 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. | |
| public | ValueVisible: String (write-only) |
| This property may be used to hide or show the value field. | |
Constructor | |
| BJCWheel ( ) | |
| Constructor | |
Method Summary | |
| doLayout ( ): Void | |
| public | getValue ( ): Number |
| This method may be used to get the current value of the wheel. | |
| public | setBgColor ( col: Number ): Void |
| This method may be used to set the background color of the component. | |
| public | setCallback ( cb: String ): Void |
| This method may be used to set the function to be called when the wheel is dragged. | |
| public | setMode ( mode: String ): Void |
| This method may be used to set the mode of the wheel. | |
| public | setScale ( min: Number, max: Number, step: Number ): Void |
| This method may be used to set the value range and step amount. | |
| public | setSeparators ( amount: Number ): Void |
| This method may be used to set amount of separators in the wheel. | |
| 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 wheel. | |
| public | viewValue ( view: Boolean, font: String, color: Number ): Void |
| This method may be used to set the visibility of the value field. | |
|
| This property may be used to set the background color. |
|
| This property may be used to set the function to be called when the wheel is dragged. |
|
| 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 value of the wheel. |
|
| This property may be used to set the minimum value of the wheel. |
|
| This property may be used to set the wheel mode. |
|
| This property may be used to set amount of separators. |
|
| This property may be used to set the starting value of the wheel. |
|
| This property may be used to set the amount of snap points. |
|
| This property may be used to set the title. |
|
| This property may be used to hide or show the title field. |
|
| This property may be used to hide or show the value field. |
|
| Constructor |
|
|
This method may be used to get the current value of the wheel.
|
|
|
This method may be used to set the background color of the component.
| |||
|
|
| This method may be used to set the function to be called when the wheel is dragged. This method may be used to set the function to be called when the wheel is dragged. 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 mode of the wheel. This method may be used to set mode of the wheel. The analog mode allows the wheel to execute it's callback function continuously during the scroll. The digital mode allows the wheel to execute it's callback function only when scrolling has ended.
| |||
|
|
| This method may be used to set the value range and step amount. This method may be used to set the minimum value, maximum value and the number of steps of the wheel. If the number of steps is bigger than 0, the wheel will snap itself to the nearest step point available. The maximum amount of steps is the value range between the maximum and minimum values.
| |||||||||
|
|
This method may be used to set amount of separators in the wheel.
| |||
|
|
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 wheel.
| |||
|
|
This method may be used to set the visibility of the value field.
| |||||||||
|