3 Action Script problems I'm having!
Hi guys. I'm a beginner at Action Script 3 and am trying to make a very simple game but having 3 issues I need to overcome and was wondering if you could help me out.
1st. I want to create a button in Flash. When I press on it and release, it changes colour to green or red depending on whether or not it was the correct button you were meant to click (the boxes are the answers to a question). However I cant even get it to turn one colour as on the button time line, there are 4 buttons and the 4th is called Hit. I turned the hit key frame to green but it never comes up on release. Any ideas how to do this?
2nd: There are going to be 3 rows of boxes linked to one quiz question. If you get 0 questions right, go to this frame when you press the next button, if you get 1 right, go to frame b, 2 right, frame c, and 3 right, go to frame c. How do I keep note of each out come and how do I make it so once you select one of 3 boxes from each row, you cannot select any from that row again?
and finally 3rd: I have a movie clip animation of a health bar. I want to have it remain constant throughout the animation so that for each out come, it will increase in frames on its own time line (not the main one) by +10 frames to give the effect of the player/enemy loosing health. The only problem is that the buttons and key frames jump around the animation and I do not want the value of which frames the health bar is on to change. Not sure how on earth this would be possible.
If this makes any sense at all and you have some code that you think I could use to help me out then I would be very grateful.
I've tried explaining as best as I can but it is hard to explain my issues with just text so if you have any questions, let me know and I will go through them :)
Thank you for reading!