_root.target.gotoAndStop(2) ;
To Flash, that translates to: Get out of this movie clips timeline; go back up to the root level of the movie and the maintime line, and find the movie clip instance that weve named target. Go to frame 2 of that movie clip, and when you get there, stop.
And really, thats it. Until you get used to nesting conditions and functions like this, it can be a bit of a headache; a new syntax is always hard to learn, but once youve practiced a few times you develop a higher level of comfortand the hitTest function is a good one to learn on. Basically all that you need to remember is that a function performs an assigned task upon whatever parameter or name is inside of its ( ) parentheses; a condition will perform whatever functions are inside of its { } brackets, once its requirements are metwhether those requirements are a release of a mouse click in an on (release) command or a specific function contained as part of an if/else statement.
And with that overwith, take a look at the scripts in action.


