# prevFrame won't stop firing

**URL:** <https://forum.kirupa.com/t/prevframe-wont-stop-firing/276302>\
**Category:** flash\
**Created:** [November 25, 2008, 5:11pm UTC](https://forum.kirupa.com/t/prevframe-wont-stop-firing/276302 "2008-11-25T17:11:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddykraven](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@bigdaddykraven](https://forum.kirupa.com/u/bigdaddykraven)\
**Post date:** [November 25, 2008, 5:11pm UTC](https://forum.kirupa.com/t/prevframe-wont-stop-firing/276302/1 "2008-11-25T17:11:26Z")

</div>

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:

```auto
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.
