PDA

View Full Version : hitTest hates me.


DarthJay
08-17-2006, 05:23 AM
Hello, all. I have been pulling my hair out on this one all day, so maybe someone can help.

What I am doing is setting up a dynamic image gallery with scrolling thumbnails. I have the thumbnails dynamically pulling into a empty movieclip just fine, but the hitTest action I have applied to my button to scroll the movieclip absolutley refuses to work. I get the happy little "rollover" finger like it acknowledges it's probably supposed to do something, but won't recognize anything inside the hitTest command. I am attaching the file, and you can see the problem code on the invisible movieClip placed over the "up" button (also below).

onClipEvent(enterFrame){
if(this.hitTest( _root._xmouse, _root._ymouse, false)){
trace("hit");
for (i=0;i<5;i++){
if (_root.thumbMC._y > -80)
_root.thumbMC._y--;
}
}
}

I'm doing some other things in the movie as well, but nothing that should interfere with hitTest working....I'm stumped?! Maybe I'm just missing something obvious, I dunno...??

DarthJay
08-17-2006, 07:38 AM
Okay - this is weird. I fixed the problem by deleting the layers and putting back in there exactly what was in there before?! I guess maybe I had a typo on the first round or something. Weird.

I'll post the final file under a different topic when I'm done since I've seen a LOT of people in the forums asking how to do this sort of thing.

Thanks!