At the end of your change() handler, save the stepper value to a
timeline variable or class property, then next time compare the
stepper value with that previous value. Lather, rinse, repeat.
Nathan
http://www.nathanderksen.com
On Dec 29, 2005, at 12:03 PM, Mike Boutin wrote:
I have a NumericStepper that changes the value of a price textfield
based on the stepper value. Is there anyway to check if the user
increment/decrement the stepper so I can muliply/divide the number
when needed. Thanks
var nstepListener:Object = new Object();
nstepListener.change = function(evt_obj:Object) {
if (evt_obj.target.value == 0) {
} else {
var oldPrice:Number = proPrice.text;
var step:Number = evt_obj.target.value;
proPrice.text = oldPrice*step;
}
};
orderQuantity.addEventListener("change", nstepListener);
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders