1
Ask a Question / Re: Compare the contents of two lists for equality
« on: August 14, 2013, 09:15:58 pm »
For anyone following along at home, I took Tuo's code and broke out the combos and their corresponding events.
The behavior, in the end, takes a Duration (Number), a list of Combos (Text, each move separated by a comma), and a corresponding list of Events (each a Text).
Just like in Tuo's solution, the behavior accumulates the keypresses in a hidden attribute. It then compares the value of the hidden attribute against each text in the list of combos and, if it matches, triggers the corresponding event.
The behavior, in the end, takes a Duration (Number), a list of Combos (Text, each move separated by a comma), and a corresponding list of Events (each a Text).
Just like in Tuo's solution, the behavior accumulates the keypresses in a hidden attribute. It then compares the value of the hidden attribute against each text in the list of combos and, if it matches, triggers the corresponding event.