# Making A Button Flicker

**URL:** <https://forum.kirupa.com/t/making-a-button-flicker/243207>\
**Category:** flash\
**Created:** [November 4, 2007, 11:45am UTC](https://forum.kirupa.com/t/making-a-button-flicker/243207 "2007-11-04T11:45:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomyknoker](https://avatars.discourse-cdn.com/v4/letter/t/50afbb/32.png) [@tomyknoker](https://forum.kirupa.com/u/tomyknoker)\
**Post date:** [November 4, 2007, 11:45am UTC](https://forum.kirupa.com/t/making-a-button-flicker/243207/1 "2007-11-04T11:45:47Z")

</div>

Hi all, onRollOver I am trying to make my button Flicker on/off but cannot get it too work, the best I can do is get it to go to alpha 60 and then back to 100…

```auto
newBut.onRollOver = function() {
			if( cnt < 100){
// Reduce alpha.
// Lower this for more dramatic effect.
this._alpha = 60;
this._alpha = 100;
cnt++;}}

```

Thanks in advance!
