Help optimising code

Hi all,
I’m a noobie, struggling with AS2.
I have 6 movieClips in my movie that have the same actions.
is there any way I can use a single code for all of them instead of repeating the code everytime.

my code is as below.

 
//code for contact section
this.dottedPlants_mc.contactAni_mc.onRollOver = function() {
	this.gotoAndPlay("shake");
}

this.dottedPlants_mc.contactAni_mc.onRollOut = function() {
	this.gotoAndPlay("start");
}

this.dottedPlants_mc.conractAni_mc.onRelease = function() {
	trace("contact clicked");
}
//code for email section
this.dottedPlants_mc.emailAni_mc.onRollOver = function() {
	this.gotoAndPlay("shake");
}

this.dottedPlants_mc.emailAni_mc.onRollOut = function() {
	this.gotoAndPlay("start");
}

this.dottedPlants_mc.emailAni_mc.onRelease = function() {
	trace("email clicked");
}

thank you for your time and help