# AS2 rollovers

**URL:** <https://forum.kirupa.com/t/as2-rollovers/295187>\
**Category:** flash\
**Created:** [August 26, 2009, 1:03pm UTC](https://forum.kirupa.com/t/as2-rollovers/295187 "2009-08-26T13:03:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwalker80](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@jwalker80](https://forum.kirupa.com/u/jwalker80)\
**Post date:** [August 26, 2009, 1:03pm UTC](https://forum.kirupa.com/t/as2-rollovers/295187/1 "2009-08-26T13:03:18Z")

</div>

Hey,

I have rollovers in Flash using AS2.

Check them out here:

http://justinwalker.ie/phones/phones.html

They work fine except for when you rollover over them quickly sometimes the phone get stuck on the rollover state.

Is there any way of getting this to work a bit more smoother?

All elements are on a single frame and the AS on the frame is:

```auto

_root.nokia1_rollover.onRollOver = function() {
    nokia_6700.gotoAndPlay("over");
}

_root.nokia1_rollover.onRollOut = function() {
    nokia_6700.gotoAndPlay("off");
}

_root.lg_rollover.onRollOver = function() {
    LG_arena.gotoAndPlay("over");
}

_root.lg_rollover.onRollOut = function() {
    LG_arena.gotoAndPlay("off");
}

_root.sony_rollover.onRollOver = function() {
    sony_w995.gotoAndPlay("over");
}

_root.sony_rollover.onRollOut = function() {
    sony_w995.gotoAndPlay("off");
}

_root.nokia2_rollover.onRollOver = function() {
    nokia_5800.gotoAndPlay("over");
}

_root.nokia2_rollover.onRollOut = function() {
    nokia_5800.gotoAndPlay("off");
}

_root.samsung_rollover.onRollOver = function() {
    samsung_jet.gotoAndPlay("over");
}

_root.samsung_rollover.onRollOut = function() {
    samsung_jet.gotoAndPlay("off");
}

```
