Example
This example, written on a frame of the Timeline, sends a message to the Output panel when a
stepper called
myNumericStepper
. The second line defines a function for the
form
function is a
trace()
function, in this example
object is the component that generated the event—in this example,
NumericStepper.value
line calls
EventDispatcher.addEventListener()
event and the
change
form = new Object();
form.change = function(eventObj){
// eventObj.target is the component that generated the change event,
// i.e., the numeric stepper.
trace("Value changed to " + eventObj.target.value);
}
myNumericStepper.addEventListener("change", form);
NumericStepper.maximum
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
stepperInstance.maximum
Description
Property; the maximum range value of the stepper. This property can contain a number of up to
three decimal places. The default value is 10.
Example
The following example sets the maximum value of the stepper range to 20:
myStepper.maximum = 20;
See also
NumericStepper.minimum
NumericStepper.minimum
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
is changed. The first line of code creates a listener object called
statement that uses the event object that is automatically passed to the
, to generate a message. The
eventObj
property is accessed from the event object's
listener object as parameters.
form
event on the listener object. Inside the
change
target
myNumericStepper
target
from
myNumericStepper
NumericStepper component
property of an event
. The
property. The last
and passes it the
597
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers