Hi,
I'm trying to the a game in which I want to have a movieclip that can intersect with other different movieclips, but I don't know how to do it.

At this moment, I have the following code for a movieclip that hits with an other movieclip:

Code:
onClipEvent (load) {
	hor = this._x;
	ver = this._y;
	
	this.onRollOver = function() {
		this._alpha = 100;
	};
	this.onRollOut = function() {
		this._alpha = 50;
	};
	this.onPress = function() {
		this.getNextHighestDepth();
		this._alpha = 100;
		this.startDrag();
	};
	this.onRelease = function() {
		this.stopDrag();
		if (this.hitTest(_root.actividade.bola_c)) {
			this.slideTo(_root.actividade.bola_c._x, _root.actividade.bola_c._y, 0.5);
			this.enabled = false;
			_root.actividade.res._alpha=100;
			_root.actividade.bola1sombra._alpha=100;
			
		} else {
			this.slideTo(hor, ver, 0.5);
			this._alpha = 50;
		}
		
	};
	this.onReleaseOutside = function() {
		this.stopDrag();
		this.slideTo(hor,ver,0.5);
		this._alpha = 85;
	};
}
Can I reuse this code and insert some lines that will just help to find a solution for my doubt or there's other way more simple to do it?

Hope someone can help me!
Thanks