# Generate Unique Random Blink & Hide

**URL:** https://forum.kirupa.com/t/generate-unique-random-blink-hide/269844
**Category:** flash
**Created:** [September 2, 2008, 11:39am UTC](https://forum.kirupa.com/t/generate-unique-random-blink-hide/269844 "2008-09-02T11:39:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![blueRainier](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@blueRainier](https://forum.kirupa.com/u/blueRainier)
#### Post date: [September 2, 2008, 11:39am UTC](https://forum.kirupa.com/t/generate-unique-random-blink-hide/269844/1 "2008-09-02T11:39:49Z")

</div>

Hello guys… Im making a game where there are 25 tiles with corresponding questions when you click them. One of the tiles must blink at a time, once the blinking tile was selected it will be hidden and the question will appear. If he answered wrong, the game is over else we will select another blinking tile after answering correctly (but the previous tile is hidden now). So how can i make the tiles blink or change its color using AS? And how i will select the available tiles, where some tiles are already disabled/hidden (already answered)?

here is my pseudocode: (im not yet familiar with AS2 OOP concepts so im will use movie clips here & array to save the selected tiles)

> 

select unique random no. from 0 - 25  
check if it is in the array1.length not 0 && generated rand. no. is not in the array1  
else store generated rand. no. to array1  
tell movieclip(array1[0]) goto blink frame  
if movieclip(array1[0]) finished blink  
goto not blink frame  
else  
hide the tile

any better idea?

thankz for the one who will reply… thankz in advance! 😃
