About calling an event method

Calling an event method is just like calling any other method in ActionScript. To call an event method, use dot notation to identify the object whose event you want to handle. However, you don't include parentheses after an event method, as you do with most ActionScript methods. You can use an absolute or a relative path to the object. You can enter the path manually, or you can use the Insert Target Path dialog box to enter it. For example, the following code uses an absolute path to call the onRollOver method of the button blueButton located in the movie clip menu1:

_root.menu1.blueButton.onRollOver = function () {
	// insert code here
};

The following code uses a relative path from a movie clip inside the menu1 instance to call the onRollOver method of the same button:

_parent.blueButton.onRollOver = function () {
	// insert code here
};

For more information about writing paths, see "Working with Movie Clips and Buttons" under Flash Help.