Time Entry Component

Brenden Meutzner from Stretch Media has created a slick Time Entry Widget. It would be a real handy component for all application developers. Now, you can forget about all those messy time format validations etc.

The component has some pretty cool properties like is24Hour, showSeconds etc. To customize the component in your mxml, set the following properties this SM_TimeEntry tag – showSeconds="true" is24Hour="false"

To set values to the variables in the component, set the following – hour="{currentTimeDynamic.hours}" minute="{currentTimeDynamic.minutes}" second="{currentTimeDynamic.seconds}" am_pm="{(new Date().hours > 12 ? 'pm' : 'am')}".

Check out the demo and source to learn more🙂.

[ Demo | Source ]

66 Responses to Time Entry Component

  1. Pingback: PLR articles

  2. it came out to be, that she wasn’t the girl for m. Corrina Eudora.

  3. you had me suicidal, suicida. Mica Kingsley.

  4. bob says:

    9vLuDe hi nice site thx http://peace.com

  5. mark says:

    If I have a time value from the server in the following format:
    HH:MM how can I set it in the Time Entry Widget?

  6. I have a time entry widget that will get you a start and end time with one mouse drag. Take a look at my time pad widget.

    Time values come from an array you describe, so only valid data is returned. The user is dragging the mouse, or optionally, one click at start time, one click at end time. Easy for both the developer and the user. Easy to retrofit to existing forms.

  7. Pingback: texas holdem poker game online free online texas holdem poker texas holdem poker online

  8. Pingback: regolamento roulette

  9. Pingback: card credit free machine

  10. Pingback: pc game poker texas

  11. Pingback: regle de poker

  12. Pingback: sale da poker online

  13. Pingback: fax loan payday

  14. Pingback: realistisches internet casino

  15. Pingback: poker debutant gratuites

  16. Pingback: cricket ringtones

  17. Antonio says:

    Sorry if this is a dumb question, but what is the benefit to a plugin like that?

  18. Pingback: telecharger world poker

  19. Pingback: procedure for credit card debt elimination credit card debt elimination legally ethically

  20. Pingback: casino online mobile

  21. Pingback: coupons bonus casino770

  22. Pingback: jugar baccara en linea

  23. Pingback: apply credit card on line

  24. Pingback: aspire credit card application

  25. Pingback: free online texas holdem poker free online texas holdem game online texas holdem

  26. Pingback: britney spears ringtones for samsung

  27. roserna says:

    Hello
    You blog very nice and very informative.
    Cheers,
    Consolidate Debt Loans

    http://consolidate-debt–loans.blogspot.com/

  28. viagra energy drink

  29. levan says:

    component looks nice but IMHO, its extremly un-user friendly, no sigle value entry available, also no way to retrieve value unells you concatenate three values together, it needs work.

    • Natalya says:

      You shouldn’t be so osssbeed by money at this age. And 850 is way too high for a 13 year old kid. Let your parents handle the money, they’ll give you some over time. You can always go and apply at clubs and post on boards in the post office or something like that. Making people know that you’re looking for some kind of easy job. I delivered newspapers at your age and earned 18 euro’s every week, delivering 3 days in the week. It was pretty nice.

  30. Pingback: online spielkasino

  31. Using the right strategies for blackjack means that you increase your odds. The odds of playing blackjack online are a bit different from playing traditional in- house blackjack. Keep this in mind so that you can wager appropriately. Also, you can be sure that when you do play online, you have a slightly better edge than you do when you play in house blackjack.

  32. Pingback: tesco credit cards

  33. gtuwv doisbey nfqjx uqfywjzmo nyrglz nslcfo jxtlk

  34. xtaeouz fgcjl gwqh sfcq

  35. sfrtyj iypt kgsbr lxhvrwu

  36. Ben says:

    You’re close here, you’ve got a good component in the making but it’s not quite perfect. The 12-hour clock doesn’t properly keep track of the hour when the am-pm value gets switched; it does it visibly with the am_pm text handler but not otherwise. You need to put the following code in both the amPMKeyHandler method and the changeStepValue method (in the part where it switches the am_pm text):
    //switch the hour value
    if (this.hour > 12) {
    this.hour = this.hour – 12;
    }
    else {
    this.hour = this.hour + 12;
    }

    You also need to comment out the following code
    /*else
    {
    (is24Hour) ? hourText.text = “12” : hourText.text = “1”;
    }*/

    in the createcomplete function under the if(defaultHour). Other than that it works.

  37. Ben says:

    Actually there is a more complex set of changes to be made… I can send you the fixed version if you would like to put it on your site.

  38. Ben says:

    Ok here are the changes I would recommend that you make to your component to get it working. It currently doesn’t properly keep track of the hours in a way that you can use it in conjunction with flex’s default date object when you use your components 12 hour mode (i.e. the hour should be set to 0 if it is 12:00 a.m. and 23 if it s 11:00pm)

    You need to but the following method in:
    private function timeChanged():void {
    //if this is not a 24 hour clock
    if (!is24Hour) {
    //to ensure the hour value is kept properly when the it is 12:00 am on the amshown clock
    if (this.hourText.text == “12” && am_pm == “am”) {
    this.hour = 0;
    this.hourText.text = “12”;
    }
    //if it is pm and the hour being displayed isn’t 12 then adjust the # accordingly
    else if (am_pm == “pm” && this.hourText.text != “12”) {
    this.hour = Number(this.hourText.text) + 12;
    }
    }
    }

    then on the textinput value “hourText” put the following property:
    valueCommit=”timeChanged()”

    then you need to put this under instances where it says “this.am_pm = amPMText.text;”:

    //switch the hour value to be am
    if (this.hour > 12 && amPMText.text == “am”) {
    this.hour = this.hour – 12;
    }
    //if the clock says 12 then it must be adjusted accordingly
    else if (this.hour == 12) {
    if (this.am_pm == “am”) {
    this.hour = 0;
    this.hourText.text = “12”;
    }
    else {
    this.hour = 12;
    }
    }
    //switch the hour value to be a pm
    else {
    //if the time was actually pm
    if (this.amPMText.text == “pm”) {
    this.hour = this.hour + 12;
    }
    }

    Lastly, you currrently have your component set so that if someone presses the right or left arrow that it adjusts the value in the box. What it should really do is jump to the right or left value accordingly (i.e. if focus is in the hoursText and someone presses the right arrow it should go to the minutesText box). I have re-written the component so it does all of that and would be happy to send it to you if you like.)

  39. yfpd qdfia gwizoan cuwfxsb

  40. las vegas slots- Welcome to RockySlots On our website you will learn how to win at slots and where to play

  41. Pingback: telecharger everest pokerjjhe

  42. Ebooks Store says:

    Would like it myself, just have to wait. When it does come, i think a lot of people shall be pleased.

  43. Bill says:

    beattitudes
    [URL=http://moxadotevufic.10fast.net/beattitudes/]beattitudes[/URL]
    navy nko
    [URL=http://moxadotevufic.10fast.net/navy-nko/]navy nko[/URL]
    homecoming hair
    [URL=http://moxadotevufic.10fast.net/homecoming-hair/]homecoming hair[/URL]
    evil names
    [URL=http://moxadotevufic.10fast.net/evil-names/]evil names[/URL]
    life cycle of a star
    [URL=http://moxadotevufic.10fast.net/life-cycle-of-a-star/]life cycle of a star[/URL]
    anorexic people
    [URL=http://moxadotevufic.10fast.net/anorexic-people/]anorexic people[/URL]
    iowa court records
    [URL=http://moxadotevufic.10fast.net/iowa-court-records/]iowa court records[/URL]
    choot aur lund stories
    [URL=http://moxadotevufic.10fast.net/choot-aur-lund-stories/]choot aur lund stories[/URL]
    0x0000007e
    [URL=http://moxadotevufic.10fast.net/0x0000007e/]0x0000007e[/URL]
    glock 27
    [URL=http://moxadotevufic.10fast.net/glock-27/]glock 27[/URL]

  44. Tom says:

    Looking for some source code for a 5 reel, 10 line slot machine with multipile win line on 1 spin.

    thank you,
    tom

  45. Suppliers says:

    component looks nice but IMHO, its extremly un-user friendly, no sigle value entry available, also no way to retrieve value unells you concatenate three values together, it needs work.

  46. sagar says:

    hi dear,

    Here you have written very well online gambling, I m also working on same stuff. i would also like to play online gambling and if you want to know more about online casino games, Find Poker Posters and Prints, Poker Results and Statistics, top online poker bonus codes, Top online poker game rooms, online poker play. you can visit at :– Casino Blogs List

  47. poker code says:

    Thank you for your help! Nice site !

  48. jeux gratuit says:

    jolie post , merci pour l’info

  49. Thanks for sharing this. Keep up the great work. I love Google.

    • Samisoni says:

      Du anar inte hur avundsjuk jag blir ne4r det sle5r mig titt som te4tt vad du fe5r gf6ra i sokaln’ pe5 dagarna. Suck. Men jag fe5r helt enkelt skylla mig sje4lv🙂 Jag har ju en egen vilja e4nde5.

  50. Hey, I love seeing up with what others have got to think about poker and all the news.I’ll be popping by in a few days to check out what else you have to say.

  51. gold says:

    Interessant. Kommt hier noch ein weiterer Beitrag? Würde gern einiges mehr darüber erfahren. Kannst du mir per Mail weiterhelfen?

  52. Natalie Port says:

    This is my first convenience life i afflict here. I found so scads interesting furniture in your blog primarily its discussion. From the tons of comments on your articles, I guess I am not the only individual having all the joy here! remain up the nice work.

  53. This site appears to recieve a good ammount of visitors. How do you promote it? It offers a nice individual spin on things. I guess having something authentic or substantial to post about is the most important thing.

  54. Nice one! I love handy things, because you don’t have to bring those huge bags just to bring your staffs. You might want to buy HTC Touch Diamond 2 cellphone, then just click it, its very affordable and I am sure you will love the cellphones they have.

  55. Book low cost car hire Turkey from best local and global car hire companies (Hertz, Avis, Sixt, Europcar, Dollar Thrifty, Budget, National, Alamo). Compare prices and get the best deal for Car Hire Turkey.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: