Minimal NumericStepper

I wasn’t planning on doing this before 1.0, but I needed one and put a couple of buttons and an input text together for the project I’m doing. Then I needed another one elsewhere in the project. So I extracted what I made, cleaned it up and here you go. 🙂

[kml_flashembed publishmethod=”static” fversion=”10.0.0″ movie=”http://www.bit-101.com/blog/wp-content/uploads/2010/03/NumericStepper.swf” width=”100″ height=”36″ targetclass=”flashmovie”]

Get Adobe Flash player

[/kml_flashembed]

The buttons are a bit different than other Numeric Steppers, but I kind of like them. You have max, min, value, step, labelPrecision, and of course a CHANGE event.

Enjoy

http://www.minimalcomps.com

This entry was posted in ActionScript, Components. Bookmark the permalink.

11 Responses to Minimal NumericStepper

  1. Og2t says:

    Ha, that’s a good one! If I could suggest some modifier keys (shift, alt) with click to multiply the value by 10 and 100.

    Is combo box coming in 1.0 then? 😉

  2. Og2t says:

    Ah, have missed the combo box! Thanks for adding it Keith!

  3. efish says:

    to Og2t: I don’t think (shift alt) is necessary, otherwise you can do it out of NumericStepper yourself.
    to Bit101: Nice. Accelerate step while pressing will be good experience.

  4. jim says:

    Very nice!A suggest that if it can be changed all the time when I press the button,that will be excellent.

  5. jim says:

    the WheelMenu has a error
    TypeError: Error #1009: null pointer
    at com.bit101.components::WheelMenu/hide()
    at com.bit101.components::WheelMenu/onStageMouseUp()

  6. jim says:

    and the list’s reflection is slow

  7. Sai Prasad says:

    luv to see repeat effect with click + hold

  8. manny says:

    On a different note, I was wondering if you have the bandwidth to add a slider that incorporates range(aka span). It would have a high and low value to adjust the thresholds.

  9. Valentin says:

    Hi Keith.
    Great components!
    I’ll try to use them in my projects.
    Do you have intention to make one of missing components in your collection.
    I mean tree menu (something like this: http://developer.yahoo.com/flash/astra-flash/tree/examples.html)
    It will be nice, don’t you think.

    Thank you again!

  10. I have been programming Flex 3 for the past 2+ years but have not dealt much with packages that are more flash oriented. Your code seems great but I am having some really dumb problems just getting a package (any of them) to actually run in a Flex 3 environment. Do you have a really simple example that calls one of the components and actually displays something in a flex environment? I am sure it’s something simple I am missing. I especially like your indicator light and minimal charting routines!

    Thanks for your excellent efforts.

Leave a Reply