I do not know alot about actionscript but I found this movie and can not figure out why the trace says undefined instead of hit. Also I am not sure what in the code makes it follow the mouse when you test it. Could someone please explain this code to me.
This is on frame one
startDrag("/Target", true, 0, 0, 400, 300);
setProperty("/VLine", _x, getProperty("/Target", _x));
setProperty("/HLine", _y, getProperty("/Target", _y));
ball._y += 2;
function collide() {
if (Target.hitTest(ball), true) {
trace(hit);
}
}
collide();
on frame two is gotoAndPlay(1);