|
pseudo.NumericStepper.NumericStepper(pThis:MovieClip)
|
| |
NumericStepper constructor. You never use the constructor to create this component.
|
| |
| Parameters |
pThis The movie clip on which the new NumericStepper will be drawn. |
| Returns |
Nothing
|
| Example |
None
|
|
|
pseudo.NumericStepper.create(pOwner:MovieClip, strName:String, nDepth:Number):pseudo.NumericStepper
|
| |
Use this static function to create new NumericStepper on the specified movie clip. Never use constructor directly to do it.
|
| |
| Parameters |
pOwner The movie clip on which the new NumericStepper will be drawn.
strName The new NumericStepper instance name.
nDepth The new NumericStepper instance depth. |
| Returns |
The reference to new NumericStepper instance
|
| Example |
// Create an instance of the skin look
var look:Object = pseudo.look.XPLook.getInstance();
//Create an instance of the NumericStepper component
stepper = pseudo.NumericStepper.create(_root, "stepper", 1);
stepper.setSize(100, 25);
////apply the slin to the NumericStepper instance
stepper.setLook(look);
//set the range for the stepper
stepper.setRange(10, 130);
//set current position of the stepper
stepper.setPos(30);
stepper._x = stepper._y = 10;
stepper.update();
stepper.draw();
stepper.setReverseMode(true);
|
|
|
pseudo.NumericStepper.setRange(min:Number, max:Number):Void
|
| |
Sets the range of the values for the component
|
| |
| Parameters |
min Number A number indicating the minimum range value.
max Number A number indicating the maximum range value.
|
| Returns |
Nothing |
| Example |
//set the value range for the stepper between 10 and 130
stepper.setRange(10, 130)
|
|
|
pseudo.NumericStepper.getMin():Number
|
| |
Returns the minimal value of the NumericStepper. The default value is 0. |
| |
| Parameters |
None
|
| Returns |
Number value
|
| Example |
//set the value range for the stepper between 10 and 130
stepper.setRange(10, 130);
//get the minimal value of the stepper
stepper.getMin();
|
|
|
pseudo.NumericStepper. getMax():Number |
| |
Returns the maximal value of the NumericStepper. The default value is 100.
|
| |
| Parameters |
None |
| Returns |
Number value |
| Example |
//set the value range for the stepper between 10 and 130
stepper.setRange(10, 130);
//get the maximal value of the stepper
stepper.getMax();
|
|
|
pseudo.NumericStepper.setPos(pos:Number):Void |
| |
Sets the current position of the NumericStepper. The default value 0.
|
| |
| Parameters |
pos Number |
| Returns |
Nothing |
| Example |
//set the value range for the stepper between 10 and 130
stepper.setRange(10, 130);
//set current position of the stepper to 30
stepper.setPos(30);
|
|
|
pseudo.NumericStepper.getPos():Number |
| |
Returns the number indicating the current position of the NumericStepper.
|
| |
| Parameters |
None |
| Returns |
Number value |
| Example |
trace(stepper.getPos());// traces the current position of the stepper
|
|
|
pseudo.NumericStepper.setReverseMode(bRev:Boolean):Void |
| |
Sets ability to step in reverse order. When the "true" parameter is passed to the function the "up" arrow decrements values andthe "down" arrow increments values.
|
| |
| Parameters |
bRev Boolean The default value is "false" |
| Returns |
Nothing |
| Example |
stepper.setReverseMode(true);// Sets stepper to reverse mode
|
|
|
pseudo.NumericStepper.setSmallStep(step:Number):Void |
| |
Sets the value to be used for the small step. This step value is used to increment stepper value when you do not press the arrow continuously. The default value is 1. |
| |
| Parameters |
step Number |
| Returns |
Nothing |
| Example |
stepper.setSmallStep(2);// Sets stepper small step to 2
|
|
|
pseudo.NumericStepper.getSmallStep():Number |
| |
Returns the value used for the small step increments.
|
| |
| Parameters |
None |
| Returns |
Nothing |
| Example |
trace(stepper.getSmallStep());//traces the value of the steppper small step
|
|
|
pseudo.NumericStepper.setBigStep(step:Number):Void |
| |
Sets the value to be used for the big step. This step value is used to increment stepper value when you press the arrow continuously. The default value is 5. |
| |
| Parameters |
step Number |
| Returns |
Nothing |
| Example |
stepper.setBibStep(6);// Sets stepper big step to 6
|
|
|
pseudo.NumericStepper.getBigStep():Number |
| |
Returns the value used for the big step increments.
|
| |
| Parameters |
None |
| Returns |
Nothing |
| Example |
trace(stepper.getBigStep());//traces the value of the steppper big step
|
|
|
pseudo.NumericStepper.setStepTrigger(stepOff:Number):Void |
| |
Sets offset between start position of the stepper and the position of the stepper when the step should trigger from smallStep to bigStep. The default value is 9. |
| |
| Parameters |
stepOff Number |
| Returns |
Nothing |
| Example |
stepper.setStepTrigger(15);// Sets stepper step trigger to 15
|
|
|
pseudo.NumericStepper.getStepTrigger():Number |
| |
Returns the offset between start position of the stepper and the position of the stepper when the step should trigger from smallStep to bigStep. The default value is 9.
|
| |
| Parameters |
None |
| Returns |
Nothing |
| Example |
trace(stepper.getStepTrigger());//traces the value of the step trigger
|
|
|
|