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...??
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...??