3 Replies Latest reply on Dec 14, 2007 2:41 PM by crazyjoemilan

    Highest Variable

      I need some help with some code that will determine what the highest number out of four variables are. (Don't worry about when it happens). The four variables/scores are:


      So, when a timer ends, I want "the game" to determine what is the highest score is, out of the four players, and tell the text box "_root.Winner" who it is.

      I also need something in the same area, except when three scores drop to 0, the remaining player wins. (and is sent to _root.Winner).
      I'm not that good at ActionScript, so hopefully any code you provide will be easy to pickup, and expand to other areas.

      Thanks in advance for the help!