
Welcome Guest
|
#1
|
|||
|
|||
|
multiple button changes
Hi, I am working on a project for myself and my friends so we can keep score of our cricket games (darts) without having to search for pen and paper. I have finished with the graphics and now I need to have my scoring buttons respond like this when clicked:
I have four buttons repeated 28 times on the screen for 4 players and 7 possible targets: Button names: 0 Hits ( ) (default state) 1 Hits ( \ ) 2 Hits ( X ) 3 Hits ( O ) (actually an O with an X thru it) Desired interaction: Button starts at 0 Hits - first click changes button to 1 Hits - second click changes button to 2 Hits - third click changes button to 3 Hits - and fourth click resets to 0 Hits, etc ad infinitum. (fourth click is for easy correction of mistake clicks) Here is my .fla file http://www.rockass.com/p3/cricket_score.fla and my .swf file http://www.rockass.com/p3/cricket_score.swf I am using Flash MX 2004 and have been animating in flash for years, but actionscripting is still new to me as I'm an artist, not a programmer. I left a couple buttons in their various down states so they're easier to find (default state is invisible). I'm sure the solution is simple - it sounded it when I started out, but now my head hurts trying to figure it out - if anyone has an actionscript for the first button I can do the drudgework of assigning it to the remaining buttons. If I tried to do a different frame for each possible game state I would have 28 to the 4th power number of frames (or something like that), so I'll choose not to do it that way for now ...Thanks for any help! snapthick |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stop playing multiple instances of a sound when clicking on a button multiple times? | Zachlaka | Flash 8 |
1 | 09-14-2006 11:30 PM |
| Button doing multiple jobs | stevehanton | Flash MX 2004 |
5 | 01-29-2006 08:10 PM |
| multiple hit area on a button! | Andy_beet | Flash MX |
1 | 12-12-2005 04:29 AM |
| same button.. multiple function | adroitemedia | Flash MX ActionScript |
1 | 02-25-2003 11:20 AM |
| multiple actions on one button instance | dannyintraligi | General Flash | 1 | 03-04-2002 09:40 PM |

Programming Languages

...

