Key.isDown(***) checks to see if the key specified inside the parentheses is, as the script might indicate, pressed/down. It returns a value of true or false, but doesnt do anything else; thats what we need the if statement for. It evaluates whether or not the specified key is pressed, and if the value returned is true, then it performs the function inside the brackets.
Each key is defined by Key.KEYNAME, and each key has its own unique name (you can check Flashs in-program ActionScript reference for a full list of the strings and numbers assigned to each key). For each if statement, we check to see if one of the four arrow keys is pressed, and then adjust the position of the symbol referenced by _root.active accordingly.
For instance, if the statement testing to see if the up arrow was pressed returned a true, then the script would subtract three pixels from _root.actives current y position, moving it up horizontally by three pixels with every press of the key. If the statement testing the right arrows status returned a true, then the script would add three pixels to the current x position, moving it three pixels to the right with every press.
So whats _root.active? Its the ornament thats currently selected as the one thats going to move when those keys are pressed. The last step covers defining the most recently clicked ornament as the active one.


