Help me understand hitTest

i don’t understand.
why does this work:
onClipEvent (enterFrame) {
moveX = this._x;

if (num == 1) {
	this._x = moveX-5;
}
if (num == 2) {
	this._x = moveX+5;

}
if (this, hitTest(_root.block)) {
	num = 1;
}
if (this, hitTest(_root.block2)) {
	num = 2;
}

}

and this only works when one side of the bar is hit (the top side actually)

onClipEvent (load) {
gotoX = random(10)+1;
gotoY = random(10)+1;
zY = 1;
zX = 1;
}
onClipEvent (enterFrame) {
//move
_x += (zXgotoX), _y += (zYgotoY);
//boundaries
if (this._x>=390) {
zX = -1;
} else if (this._x<=10) {
zX = 1;
}
if (this._y>=590) {
zY = -1;
} else if (this._y<=10) {
zY = 1;
}
//change dir because hit bock
if (this, hitTest(_root.block1)) {
zX = -1;
zY = -1;
}

}

if i change it to this:
if (this.hitTest(_root.block1._x, _root.block1._y, true)) {
zX = -1;
zY = -1;
}

it doesn’t work at all…

( i’m clearly not really geting hitTest…)

moo

“It is a mistake to think you can solve any major problems just with potatoes…”

-Douglas Adams