# Stuck in a Rut

**URL:** <https://forum.kirupa.com/t/stuck-in-a-rut/63336>\
**Category:** flash\
**Created:** [September 5, 2004, 4:41pm UTC](https://forum.kirupa.com/t/stuck-in-a-rut/63336 "2004-09-05T16:41:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pickkill](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@pickkill](https://forum.kirupa.com/u/pickkill)\
**Post date:** [September 5, 2004, 4:41pm UTC](https://forum.kirupa.com/t/stuck-in-a-rut/63336/1 "2004-09-05T16:41:17Z")

</div>

```auto
on (release) {
	getURL("http://www.merchdirect.com", "_blank");
}

on (rollOver) {
	_root.merchdirect_mc.gotoAndPlay (2);
}

on (rollOut) {
	_root.merchdirect_mc.gotoAndPlay (10);
}

```

this is the code that i am using for one of the buttons on my site. however. i am having problems with it. everything works fine, except if you go over the button quickly, it gets stuck in a loop, and does not recognize the rollOut. untimately i am tryin to acomplish a alpha fade out to like 60% when you rolloover, and then go back to 100% on rollOut. I am wondering if there is an easier way to do this. i can post an .fla if you would like. thanks :asian:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 5, 2004, 11:02pm UTC](https://forum.kirupa.com/t/stuck-in-a-rut/63336/2 "2004-09-05T23:02:21Z")

</div>

```auto

on (release) {
    getURL("http://www.merchdirect.com", "_blank");
}
on (rollOver) {
    _root.merchdirect_mc._alpha= (this._alpha-60)/speed;}
on (rollOut) {
    _root.merchdirect_mc._alpha= (100-this._alpha)-speed;
}

```

where speed is variable you are using to fade the alpha change. if that doesnt work right, its probably because i didnt test it. any problems, say so and ill fix it.
