# How can I make flash not repeat what it's already shown?

**URL:** https://forum.kirupa.com/t/how-can-i-make-flash-not-repeat-what-its-already-shown/185566
**Category:** flash
**Created:** [April 14, 2006, 8:56am UTC](https://forum.kirupa.com/t/how-can-i-make-flash-not-repeat-what-its-already-shown/185566 "2006-04-14T08:56:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Burnie](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Burnie](https://forum.kirupa.com/u/Burnie)
#### Post date: [April 14, 2006, 8:56am UTC](https://forum.kirupa.com/t/how-can-i-make-flash-not-repeat-what-its-already-shown/185566/1 "2006-04-14T08:56:16Z")

</div>

Hi,

Basically I’m working on a (very simple) children’s game and have set up a bit of code so when you hit a btn it moves you to a different place on the timeline:

on (release) {  
labelarray = [“friend1”, “friend2”, “friend3”, “friend4”, “friend5”, “friend6”, “friend7”];  
randomidx = random(labelarray.length);  
gotoAndPlay(labelarray[randomidx]);  
}

What I need it to do is always go to a new ‘unseen’ frame and then at the end give a score out of 7 for how many the children have got right.

The scoring i’ll try and crack later but can anyone tell me how I can make it so that flash remembers where it’s been and not repeat?

Thanks

---

<div class="post-metadata">

### Author: ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)
#### Post date: [April 18, 2006, 1:32am UTC](https://forum.kirupa.com/t/how-can-i-make-flash-not-repeat-what-its-already-shown/185566/2 "2006-04-18T01:32:45Z")

</div>

delete the value from the array once its visited?

```auto

on (release) {
	labelarray = ["friend1", "friend2", "friend3", "friend4", "friend5", "friend6", "friend7"];
	randomidx = random(labelarray.length);
	gotoAndPlay(labelarray[randomidx]);
	labelarray.splice(randomidx, 1);
}

```
