View Full Version : Button RollOver/Rollout question
dan7600
05-05-2007, 01: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
Take a look at hitTestPoint.
notSoMuch
11-30-2007, 01: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!
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.