Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22

Thread: ActionScript Calculator

  1. #16
    it's been a while since anyone touched this thread, so i wonder if i will get a response...

    iftecan, how did you get your calculator to display the "0" and "." instantaneously? Unlike with other scripts, I like that the data one enters shows up immediately in the input/output text field of your calculator. For instance, instead of waiting until the 2 button is released to see .000002, the user will receive immediate feedback of what they're entering. Bravo! The only thing i would change is your layout - maybe distance the function keys from the numeric keys perhaps?

    Also, would it be possible for you to show us how you went about scripting your calculator? Or can anyone else enlighten me please? I would be very grateful.

  2. #17
    Thats great work iftican i checked that it was cool.

  3. #18

    Thanks for the feedback

    deanpowel71 - Glad you liked it.

    ahaara - I created this program as a project while learning AS3. I will post the code here so you an take a look at the implementation. I may have to dig through my old files. Will try to post it within the next two days or so...

  4. #19

    Calculator code

    Quote Originally Posted by ahaara View Post
    Also, would it be possible for you to show us how you went about scripting your calculator? Or can anyone else enlighten me please? I would be very grateful.
    I have attached the code here.
    Attached Files Attached Files

  5. #20
    i know this is super belated, but thanks iftecan!!! your script is waaaaaay beyond my feeble skill, but I really appreciate being able to look through it to try to educate myself. Very cool and thanks again!

  6. #21
    Wow! lot's of scripting, this'll help me build one.

  7. #22
    17
    posts
    Registered User
    I've attached an AS3 version of this is in response to another thread. Hopefully you don't mind, icio; the modifications were fairly small.

    I also implemented rkalexander's suggestion, though it still doesn't quite behave like traditional, limited-function calculators in that pressing = doesn't repeat the last operation. I didn't want to modify the original too much, though, so I left it alone.

    Attached Files
    its a lil buggy tho. when u press the number then hit the decimal button, the output text just giving to many wired number... can u fix those please... i relly need this to working coz i m making a simple calculator to help me calculate a roofing weight at office... not for profit purpose but get my job 3 times faster...

    relly appreciate if u can debug the decimal and fix the last operation pressed... thx in advance...

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012