Rollover what? help please :*(

Hey folks, long time no see.

I’m making an interactive animation for a friend and I need help.

Basically, there are 16 frames, and I need a specific frame to play when the mouse rollsover a certain AREA. (e.g. plays frame 1 on far left rollover all the way to frame 16 on far right rollover.)

I guess I don’t know how to action script an “area” on the stage to define the rollover and then the gotoandstop.

…or maybe I’m going about this the wrong way entirely???

Help is muchos gracias appreciato.

t2d

Anyone?

Or if anyone can tell me how to define an area I can take it from there.

(As in if mouse is between certain coordinates, go to and stop (frame #).)

Thanks,

t2d

on(rollOver){
_root.gotoAndPlay(16)
}

or whatever frame you want for each ‘area’

Cool, but how do I do it for 16 (or however many) different areas?

Is that code for a button? Should I make 16 buttons? That doesn’t seem efficient.

I’m trying something along these lines but it isn’t working for some reason:

var pointerX = _xmouse; // horizontal location of mouse
var pointerY = _ymouse; // vertical location of mouse

if (pointerX>0) {
gotoAndStop (1);
}
if (pointerX>20) {
gotoAndStop (2);
}

>:(

t2d