HitTest problem.....HeLp!

Ok I have this new website I’m in the middle of creating. I have been having this problem for a little while now.

I have about 5 buttons on the site so far and each of them has a little mc behind it that plays with this code…

[AS]onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}[/AS]

I use this code so that I dont have to add it straight into the button…and so it runs smoother. Anyway, since the movie is a little long on each one, the mouse over area is too long too. I can move over an area way over in the right and the button will play the little mc. This is kind of hard to explain. Here’s the .fla so you guys can get a better look at it.

HERE

Oh and here’s the URL so that you can see what I mean before you have to Download the file. When you go to the site, try moving around under the words NAV MENU. It still plays the mc. Can anyone help?!

http://www.whatjam.com/gv4.html

Thanks… :thumb:

wow, that is weird. Cool roll over effect though :-p


onClipEvent (enterFrame) {
        if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if(this._x <= 200){                
this.nextFrame();
}
        } else {
                this.prevFrame();
        }
}

changethe 200 to whatever the navigation logo pos is…
WOuldn’t that work ? =)

No I don’t think so…I tried and it didn’t. Did you get the fla file I sent? Try something our with that. I really appreciate any help!

:puzzle:

Ok the problem is…I have 5 buttons. and its pretty much like this…

Since the movieclip for each button is so long…the AS makes it target the whole movie. I only want it to target the button area. How do I do this? :puzzle:

maybe you could try:
[AS]onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if(_root._xmouse <= 200){
this.nextFrame();
}
} else {
this.prevFrame();
}
}
[/AS]
and change the 200 to where the buttonarea ends

scotty(-:

YES!!! Thank you soo much Scotty. That worked out great! :thumb:

no problem(-: