1 Reply Latest reply on Sep 2, 2006 4:05 AM by Newsgroup_User

    Using Numeric Stepper for Time

    YoonMi
      Hi there All,
      I want to use the numeric stepper to select time. I want to be able to move up and down using the numeric stepper in 15 minute intervals...can this be done. For example if the default value is 12:00 - I want to move down to chose 12:15 and up to chose 11:45. I would use a second stepper for am or pm. Anyway I know it can be done using a combo box, but I really like the look of the numeric stepper. If anyone has any ideas that would be terrific.

      Thanks,
      YoonMi
        • 1. Re: Using Numeric Stepper for Time
          Level 7

          You could use the stepSize property to 15 but then problem is then changing
          the hour in the same stepper.
          http://livedocs.macromedia.com/flash/8/main/00003888.html

          If you wanted to use two steppers one for minutes and one for hours. Then
          you could use the change event for the minutes to change the hour stepper.
          Look and feel becomes an issue in this case.
          http://livedocs.macromedia.com/flash/8/main/00003883.html

          I would suggest two arrow buttons from the Common libraries and writing your
          own code.

          --
          Lon Hosford
          www.lonhosford.com
          Flash, Actionscript and Flash Media Server examples:
          http://flashexamples.hosfordusa.com
          May many happy bits flow your way!
          "YoonMi" <webforumsuser@macromedia.com> wrote in message
          news:ed41j4$jsv$1@forums.macromedia.com...
          > Hi there All,
          > I want to use the numeric stepper to select time. I want to be able
          > to
          > move up and down using the numeric stepper in 15 minute intervals...can
          > this be
          > done. For example if the default value is 12:00 - I want to move down to
          > chose
          > 12:15 and up to chose 11:45. I would use a second stepper for am or pm.
          > Anyway I know it can be done using a combo box, but I really like the look
          > of
          > the numeric stepper. If anyone has any ideas that would be terrific.
          >
          > Thanks,
          > YoonMi
          >