# Blinking!

**URL:** <https://forum.kirupa.com/t/blinking/219511>\
**Category:** flash\
**Created:** [March 17, 2007, 9:05am UTC](https://forum.kirupa.com/t/blinking/219511 "2007-03-17T09:05:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joehann](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@joehann](https://forum.kirupa.com/u/joehann)\
**Post date:** [March 17, 2007, 9:05am UTC](https://forum.kirupa.com/t/blinking/219511/1 "2007-03-17T09:05:08Z")

</div>

Hey guys,

I was experimenting with actionscript as usual, and tried creating this ‘blink’ effect. Below is the idea:

**AScript to be used:**  
setInterval() & 1 blink function

**Objective:**  
I wan to achieve a white text blinking from white to yellow then back to white at an interval of every 2 seconds.

**My Script:**

- // making the press blink at regular interval\*  
function blink(){  
var colourful = new Color(‘press\_mc’);  
if(colourful.setRGB(0xffffff))  
{  
colourful.setRGB(0xfcff26);}  
else  
{colourful.setRGB(0xffffff);}

## setInterval (blink,1000);

But the thing is my script doesnt work !!!

Can someone pls assist ?

Thank you so much !

regards,  
Joehann

> **[Wedding Videography Singapore](https://www.greenimagination.com/)**
>
> Wedding Videography Singapore
