Score board for a game show

Hi all, Ok here goes.
I need to create a score board for a game show at work for staff.  The score board must keep score on the left and right parts of the screen. score must start as default on 0.  Then every time I press for example the left arrow key the left score must increase by the value of 1 and when I press the right arrow key the left score must decrease by 1.
Same goes for the right score only with differant keys example up and down keys.  This sounds very simple and I managed to get it to work when I tested with only 1 score, but failed when adding the second score to the picture.
Please help me out on this as I don't know how to program in flash and I'm not getting any replies from other forums.

That is AS2 code so you should repost your problem in the AS1/2 forum if you continue to have a problem.  You should try making the other score work again and show the code you are using that is not working.
Since you have little familiarity with coding, you will do best to not approach coding the way you are.  Putting code "on()" objects is not a good practice.  You should place all the code in the timeline and assign instance names to objects to enable the timeline code to target the objects.
If you have a button in place merely to support having the code for keyboard interaction processing, then you should do away with that and just have code assigned to deal with the keyboard specifically.  Here's some code that might get you started... if you cannot get it working for you, then please repost your problem in the correct forum.  The code goes in the timeline. Instead of the traces, you would be changing the score values...
var keyListener:Object = new Object();
Key.addListener(keyListener);
keyListener.onKeyDown = function(){
   if(Key.getCode() == 38) trace("up");
   if(Key.getCode() == 40) trace("down");
   if(Key.getCode() == 37) trace("left");
   if(Key.getCode() == 39) trace("right");

Similar Messages

  • Flash Game High Scores Board

    Hello everyone,
    I know this is a subject that gets covered a lot as i have found a ton of tutorials that show a million dfferent ways to create a high scores board on a flash game.  So i decided to go out on a limb and pick a tutorial out to try.  Well I have now tried 3 different ones and have yet to get a working high scores board with my game.
    http://www.flashkit.com/tutorials/Games/How_to_c-Nick_Kuh-771/index.php
    That is the link to the most recent attempts to creat my high scores board.  When i finished everything the way the tutorial said it seemed like everything would work and then it just didnt.  After spending oh about 40 plus hours trying to make a high scores board i am getting very frustrated.  My game is scripted in AS2 and i have access to mysql and can set up unlimited databases.
    Can anyone please help me by sending an easy to follow tutorial that will work with AS2?  I would just like any kind of help right now as I feel ALL of my valid ideas have been ehausted.  Thanks in advance to anyone that can help!
    kapelskic

    Okay not a problem.
    This is my code on the very first frame of the game that initializes the the highscores.php script
    command = "init";
    _root.loadVariables("highscores.php?"+int(Math.random()*100000), "POST");
    This is the code that I have on a submit button, next to the input text box where the user enters their name for the scoreboard.
    on (release) {
    if(name ne ""){
    command = "update";
    _root.loadVariables("highscores.php?"+int(Math.random()*100000), "POST");
    gotoAndStop ("highScores");
    In every place the code says _root. I have also tried this. and neither of them work.  I have also tried a million other things.  So far the game plays through, goes to the game over screen where it asks for a user name and tells them their score.  Then once they press submit the game goes to the highScores screen but the name and score are not there.  The high scores screen cosists of 2 dynamic text fields one named "players" and one named "scores".  I hope this helps because I spent another 5 or so hours after my initial posts trying more tutorials with still no luck.  (the problem i am having is that i am new to flash, however not to PHP)
    kapelskic

  • High Scores Board AS2

    Hello everyone,
    I know this is a subject that gets covered a lot as i have found a ton of tutorials that show a million dfferent ways to create a high scores board on a flash game.  So i decided to go out on a limb and pick a tutorial out to try.  Well I have now tried 3 different ones and have yet to get a working high scores board with my game.
    http://www.flashkit.com/tutorials/Games/How_to_c-Nick_Kuh-771/index.ph p
    That is the link to the most recent attempts to creat my high scores board.  When i finished everything the way the tutorial said it seemed like everything would work and then it just didnt.  After spending oh about 40 plus hours trying to make a high scores board i am getting very frustrated.  My game is scripted in AS2 and i have access to mysql and can set up unlimited databases.
    Can anyone please help me by sending an easy to follow tutorial that will work with AS2?  I would just like any kind of help right now as I feel ALL of my valid ideas have been ehausted.  Thanks in advance to anyone that can help!
    kapelskic

    Please don't cross post in these forums

  • I want to set up a user account for my 3 year old, so when she goes into her account, only her games show up on the desktop

    I am trying to set up a user account for my 3 year old so that when she goes into her account, only her games show up on her desktop.  How??

    yes -- I think I am setting it up right, but when I go into her account to check it, it doesn't work.

  • Purchased MLB via 1 of my 3 appletv's. My oldest 2nd gen 720P shows "error loading content" for all games. What's up?  Also I can't get MLB to work on my iPad2, iPhone 4S or iPod 5th gen. Arrhhgg

    Purchased MLB via iTunes on 1 of my 3 appletv's. My oldest 2nd gen 720p shows "unable to load content" for all games , but my other 2 appletv's work fine, restarted problem appletv to no luck.  Also can't watch games on my ipad2 "unable to restore from iTunes" , iPhone 4s " unable to connect to MLB.com" or iPod 5th gen.

    Purchased MLB via iTunes on 1 of my 3 appletv's. My oldest 2nd gen 720p shows "unable to load content" for all games , but my other 2 appletv's work fine, restarted problem appletv to no luck.  Also can't watch games on my ipad2 "unable to restore from iTunes" , iPhone 4s " unable to connect to MLB.com" or iPod 5th gen.

  • Hi- I think I was charged wrong on my receipt. It shows a 19.99 charge for gold for a game I was playing and I only bought 2  of the .99 cent ones. Order number MH******GW

    hi- I think I was charged wrong on my receipt. It shows a 19.99 charge for gold for a game I was playing and I only bought 2  of the .99 cent ones. Order number MH*****GW.
    <Edited by Host>

    You should not post any personal information here. We're all just fellow users and these are public forums, so posting any sort of personal information is a risk. Go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • TS1646 I want to pay 4.99 for my game, however, it shows "your purchase could not be completes." I have no idea how to solve it. btw I just changed my location and payment option for my APPLE ID.

    I want to pay 4.99 for my game, however, it shows "your purchase could not be completes." I have no idea how to solve it. btw I just changed my location and payment option for my APPLE ID.

    If you are getting a message to contact iTunes Support then to do so (these are user-to-user forums) :
    - go to http://www.apple.com/support/itunes/ww
    - click on your country's flag
    - click on the Contact Support at the bottom of the left-hand column
    - click on Contact iTunes Store Support on the right-hand side of the page
    - then Purchases, Billing & Redemption

  • What SDK for  board and card games dev?

    Hi,
    I'm creating board and card games as a hobby. I used Windows
    GDI in the past, but my experience is that my creativity is limited
    by the difficulty in manipulating sprites, transparency and
    scalable graphics. I don't care about 3D. I do care about
    synchronization between audio and video events. I'm currently using
    MS Visual Studio 6. Games available on shockwave.com surely use
    some sort of SDK to help carry these tasks, but I don't know if
    they all use the same or there are many flavors available. In
    extra, I like the fact you can easily develop online versions and
    play online with others. Can it support Mac? I can't spend a lot of
    money and time on new development tools, but maybe there is an
    Adobe product that would allow me to do exactly what I have in
    mind. Can someone tell me which product would best suit my need and
    what should be my expectations.
    Thanks,
    - JP

    I tried to look for clovertown processors, and they are still around 250 each plus there are different models....could you give some models of processors that will work for sure on my 1st gen mac?
    Regarding the video card:
    I tried to use the diamond 1Gb, and on the 8X slot it works basically at half the speed of the x1900 (3dmark 06 gave me 4200 for the x1900 and 2250 for the 4650); so the gain is close to 0
    Under macOs does not work at all; and when i tried to swap the 2 cards to boot the pc and use the 16x rail on the 4650, basically Vista decided to not recognize either card, leaving me with 1 monitor off and one on, without being able to recognize the video card.
    I wonder why the PCI utility on mac does not allow to set which slot will get the 16X....the only place where the x1900 fits is slot 4, so even if the card would work fine , i would have to swap cards and connectors everytime that i wanna play in bootcamp, and this is not the best choice
    Last attempt: tried with a 4870 and looks like the flashing does not always work (read trough 26 pages of a post on another site); so since i don't want to pay 350 for the apple version, i've got a 3rd party 3870 for less than 200 dollars (shame that the 4870 for pc cost the same price), that form the links that you guys gave me, seems the best choice for pro apps and games, compared to the 8800 (and the plus that under bootcamp i can get a second card and use crossfire is a huge plus, especially when the price of this card will go further down!).
    Thanks everyone for giving your suggestions, and hope that this post will help other people that, like me, were trying to update their machine to a better video card

  • HT4009 When I afford an in-app purchase for a game.It`s always show me " please contact itunes support to complete this transaction"

    When I afford an in-app purchase for a game.It`s always show me " please contact itunes support to complete this transaction"

    These are user-to-user forums, you can contact iTunes support via this page and ask why you are getting the message and how to resolve it : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • TS3297 For my game purchase cannot be success .. After I click on the icon for the purchase they will show me contact I-tunes support for complete the transaction ....for I have already contact AppleCare for assist.... And they told me is the server syste

    For my game purchase cannot be success .. After I click on the icon for the purchase they will show me contact I-tunes support for complete the transaction ....for I have already contact AppleCare for assist.... And they told me is the server system down
    Kindly get back to me ASAP!
    Thanks.

    Jay cole Ong wrote:
    After I click on the icon for the purchase they will show me contact I-tunes support for complete the transaction ....
    To Contact iTunes Support...
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • I like to get some bonus coins for a game in my iPad  , Try to using iTunes Credit to pay.i I try so many times.but the Message show contact iTunes . can't pay on time!whant can I do?

    I like to get some bonus coins for a game in my iPad  , Try to using iTunes Credit to pay.i I try so many times.but the Message show contact iTunes . can't pay on time!whant can I do?

    Hi, I got the same problem. Did you fix your problem? How did you fix it? Thanks.

  • Keynote score board with feeds?

    Hey everyone,
    im working on a project where im going to project a keynote presentation that includes a few things to make a score board. Basicly i want it to have live feed from my webcam, a timer that counts down and 2 small boxes to keep the score for that team.
    Now i have finaly managed to get live feed from my camera using quartz composer. Now for the count down i have no idea, but that is the least of my problems. I need to be able to upadate a table with the scors for each team without taking the presentation down. So i was thinking, if i make an rss feed of an exel table, (Whitch i can do no problem) i could rss feed it into the keynot... but i tryed quarts composer and it doesnt work, any ideas on how i can get it to work, or how i can do it another way?
    What about the countdown timmer? any ideas for that? (maybe just a video counting down, that may be ok)
    But yeah the score is what is realy buzzing me...
    Please help
    Thanks
    Gui

    That is AS2 code so you should repost your problem in the AS1/2 forum if you continue to have a problem.  You should try making the other score work again and show the code you are using that is not working.
    Since you have little familiarity with coding, you will do best to not approach coding the way you are.  Putting code "on()" objects is not a good practice.  You should place all the code in the timeline and assign instance names to objects to enable the timeline code to target the objects.
    If you have a button in place merely to support having the code for keyboard interaction processing, then you should do away with that and just have code assigned to deal with the keyboard specifically.  Here's some code that might get you started... if you cannot get it working for you, then please repost your problem in the correct forum.  The code goes in the timeline. Instead of the traces, you would be changing the score values...
    var keyListener:Object = new Object();
    Key.addListener(keyListener);
    keyListener.onKeyDown = function(){
       if(Key.getCode() == 38) trace("up");
       if(Key.getCode() == 40) trace("down");
       if(Key.getCode() == 37) trace("left");
       if(Key.getCode() == 39) trace("right");

  • HT5278 MY 1st gen iPad has candy crush ---but it is stuck in "an update mode". My iPad can no longer acceptsupdates for any games beyond 5.1. Therefore, each time I try to access the game it goes into a "pause" mode. I would hate to delete the game becaus

    MY 1st gen iPad has candy crush ---but it is stuck in "an update mode". My iPad can no longer acceptsupdates for any games beyond 5.1. Therefore, each time I try to access the game it goes into a "pause" mode. I would hate to delete the game because I think I will lose my score. But I can't play the game either.  Can someone help me with this?  Can I go back to my last updated candy crush for my ipad, or do I have to delete it and start over?  Also, how would I get the one for my generation iPad

    I have a similar problem. But my iPad shows the connect iTunes screen and gives error 2001 when I try to restore it.
    My iPad's battery was fine but I didn't use it for like 2 weeks. It's battery would've discharged and it turned off. When I tried to charge through wall socket, it got into the restart loop where it would show apple logo and turn off. So I did the simultaneous holding of Home and Sleep buttons for 10 seconds or more. It started showing connect to iTunes.
    When I try to restore, the iTunes does the usual "extracting file" or something and go upto preparing for restore. But the iPad screen turns off from "connect to iTunes" and iTunes gives the error 2001, and the screen is back to connect to iTunes.
    Also, if I don't plug in, the iPad seems dead, doesn't wake up or anything.

  • I'm going next week to the usa(I'm from Brazil) and i need the logic board for Apple MacBook Pro 15" A1286 where can i get it?, I'm going next week to the usa(I'm from Brazil) and i need the logic board for Apple MacBook Pro 15" A1286 where can i get it?

    I need to buy a logic board for 
    Apple MacBook Pro 15" A1286, but i couldn´t find online to buy it where can i get one and if it´s possible if i can have it delivered to my hotel

    There are a lot of MacBook Pros with the model # A1286 - which year is your model (e.g., "15-inch Late 2011")?
    The only place that I know that you might could score a specific logic board is www.ifixit.com. They may be able to ship to your hotel.
    Clinton

  • FICO scores used for mortgage - and where to obtain them

    So would I just do the FICO Standard Purchase and select Equifax and Experian and that would show me the EQ Beacon 5.0 and Experian V2SM scores that mortgage lenders pull? Just curious as the ones I get through banks listed in my sig are drastically different from the one a lender pulled - they said mine is 740 but wouldn't give me more information or show me the print out.

    The FICO scores used for mortgages Equifax Beacon® 5.0Experian®/Fair Isaac Risk Model V2SMTransUnion FICO® Risk Score, Classic 04These are sometimes listed on the tri-merge mortgage report as follows: Equifax/FICO classic V5 FACTAExperian/Fair Isaac (Ver. 2)Transunion/FICO Classic (04)Note: they have been commonly referred to on the myFICO forums and elsewhere as: EQ 04EX 98TU 04 Availablility Equifax: myFICO Equifax FICO Standard purchase, or FICO 3 Report View purchase.  Equifax Score Power purchase.  DCU provides this score monthly to it's membershipExperian: myFICO Experian FICO Standard purchase, or FICO 3 Report View purchase.  PSECU provides this score monthly to it's membership.Transunion: myFICO Transunion FICO Standard purchase, or FICO 3 Report View purchase. Updated 3/10/15 - addition of Transunion (yay!) and some clarifications

Maybe you are looking for

  • How can i change an existed apple id with credit card in a none credit card?

    ??

  • The question about RAW datatype in VBA with OO4O

    Hi all. I have developed a sort of VBA program with oo4o. When I issued "select rawtohex(saddr),saddr from v$session where rownum < 2" and I displayed the result on excel spread sheet. The result was below. RAWTOHEX(SADDR)      SADDR C0000000E14ADDF0

  • My download is stuck!

    i have been trying to download the same song for 2 days and it keeps getting stuck in the same place. i have purchased other songs after this one and they can't get downloaded b/c of this one. help!

  • API to import data

    I have tried importing data through a Response on a ASP page and that seemed to work just fine, but I ran into this issue: Importing XDP produces a different file than if manually filled??? Now I'm looking to see if there is an alternative that may w

  • Need Query to do a Sum functionality

    Hi, I have a table named Employee. The columns are Name varhcar2(10) and Salary Number(10,0) The Entries in the field are Name Salary Bob 25000 Alen 30000 Rose 15000 Ann 20000 I want to find the salary of Alen and Sum of Salary of other members in a