PDA

View Full Version : Button RollOver/Rollout question



dan7600
May 5th, 2007, 02:49 PM
Hey, i've read the "Complex Button RollOver/RollOut Effects" tutorial and found it very useful and got it to work, but is there any way to have a 'hit' area in a movie clip like in a normal button? Any help welcome thanks. :pleased:

Here's a link to the tutorial: http://www.kirupa.com/developer/mx2004/button_effect.htm

Disc
May 8th, 2007, 08:48 PM
Take a look at hitTestPoint.

notSoMuch
November 30th, 2007, 02:32 PM
OK, so, where would I look for that hitTestPoint? Keep in mind, I'm extremely stupid, so I am not going to intuitively construct my AS 3 code correctly.

I used to use this:

on ClipEvent (enterFrame){

if (this.hitTest (root.xmouse, root.ymouse, true)) {

this.nextFrame ();

}else{

this.prevFrame ();
}
}

Now, with AS 3, they've deprecated all my code so I have to use event handlers, blah blah blah.
Anyway, it's not working. Is there anyone who could tell me the simple code to use to test if the mouse is over my MovieClip and play clip forward and backward? I can't imagine it's so difficult, but I've been at this for 3 days to no avail. Remember, I'm not a programmer, just a stupid, unemployed carpenter, so please don't assume I can
just put the rest of the code in...I'm sure I can't. I've been trying to do that for many many hours.

Thanks!