this.hitTest(_root.target)
If youll remember, this separated by a period is used to tell a function to act upon the object to which the script is attachedso we just told Flash to use the hitTest function to determine if the object defined by this (instance name projectile) has entered the area of the bounding box of whatever object is inside the parentheses after hitTest. The basic formula is clipname.hitTest(target). The way that this works with our if statement is that if the check determines the target hasnt been hit, then the if statements condition hasnt been met, so nothing happensbut if the target has been hit, then hitTest returns a value of true to the if statement. With its conditions met, then the actions specified inside the if statement will happen.
_root tells Flash to make sure to go back up to the very top level of the movie to look for the movie clip referenced by that instance name. This isnt always necessary, but because Flash works in tiers as you go from the top level into movie clip after movie clip, its always best to specify which level youre acting upon so that Flash knows where to look.


