At least that is what I think the problem is. I have a banner I’m working on for work with a picture of the US and when you roll over the states that we have affiliations in, the state will grow and then using prevFrame, when you roll out, it will shrink again. However, after it shrinks, I can’t get the thing to grow again.
So I assume that prevFrame won’t stop firing back and this is causing the issue.
Here’s the code:
stop();
ohioBttn.addEventListener(MouseEvent.MOUSE_OVER, ohioOver);
ohioBttn.addEventListener(MouseEvent.MOUSE_OUT, ohioOut);
/*ncBttn.addEventListener(MouseEvent.MOUSE_OVER, ncOver);
ncBttn.addEventListener(MouseEvent.MOUSE_OUT, ncOut);
pennBttn.addEventListener(MouseEvent.MOUSE_OVER, pennOver);
pennBttn.addEventListener(MouseEvent.MOUSE_OUT, pennOut);
indBttn.addEventListener(MouseEvent.MOUSE_OVER, indOver);
indBttn.addEventListener(MouseEvent.MOUSE_OUT, indOut);*/
function ohioReverse(e:Event):void
{
ohioBttn.prevFrame();
}
function ohioOver(eventObject:MouseEvent) {
stateName.text = "Ohio";
stateInfo.text = "Production Facility";
ohioBttn.gotoAndPlay(2);
}
function ohioOut(eventObject:MouseEvent) {
stateName.text = "I'm Interactive!";
stateInfo.text = "Roll Over the Map for Information!";
ohioBttn.addEventListener(Event.ENTER_FRAME, ohioReverse);
}
I’ve been looking at different code all morning so I’m sure I’m mising something small. I’d attach the file but its too large. Thanks in advance everyone.