# Not to display repeated mcs and loaded text

**URL:** <https://forum.kirupa.com/t/not-to-display-repeated-mcs-and-loaded-text/262107>\
**Category:** Uncategorized\
**Created:** [June 3, 2008, 12:36pm UTC](https://forum.kirupa.com/t/not-to-display-repeated-mcs-and-loaded-text/262107 "2008-06-03T12:36:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nite21](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@nite21](https://forum.kirupa.com/u/nite21)\
**Post date:** [June 3, 2008, 12:36pm UTC](https://forum.kirupa.com/t/not-to-display-repeated-mcs-and-loaded-text/262107/1 "2008-06-03T12:36:12Z")

</div>

hi this is the code for random movieclips and loaded text

i wanted that once the random movieclips appear once  
it should not be repeated again

it is displaying like this 3,2,3,4,1,3,1,5

i wanted like this 3,2,4,1,5

pls help somebody  
file is attached pls check

[COLOR=#993300]var[/COLOR] myInterval:[COLOR=#993300]Number[/COLOR];  
[COLOR=#993300]var[/COLOR] count:[COLOR=#993300]Number[/COLOR] = [COLOR=#000000]0[/COLOR];  
[COLOR=#993300]var[/COLOR] maxCount:[COLOR=#993300]Number[/COLOR] = [COLOR=#000000]4[/COLOR];  
[COLOR=#993300]var[/COLOR] examples:[COLOR=#993300]Array[/COLOR] = [COLOR=#993300]new[/COLOR] [COLOR=#993300]Array[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000FF]“text1.txt”[/COLOR], [COLOR=#0000FF]“text2.txt”[/COLOR], [COLOR=#0000FF]“text3.txt”[/COLOR], [COLOR=#0000FF]“text4.txt”[/COLOR], [COLOR=#0000FF]“text5.txt”[/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#993300]var[/COLOR] mcs:[COLOR=#993300]Array[/COLOR] = [COLOR=#993300]new[/COLOR] [COLOR=#993300]Array[/COLOR]COLOR=#000000[/COLOR];  
thisText = [COLOR=#993300]new[/COLOR] [COLOR=#993300]LoadVars[/COLOR]COLOR=#000000[/COLOR];  
thisText.[COLOR=#993300]onLoad[/COLOR] = [COLOR=#993300]function[/COLOR]COLOR=#000000[/COLOR]  
[COLOR=#000000]{[/COLOR]  
[COLOR=#993300]if[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
TextHolder.[COLOR=#993300]text[/COLOR] = thisText.[COLOR=#000000]counts[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[COLOR=#000000]}[/COLOR];

[COLOR=#993300]function[/COLOR] mytimerCOLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#993300]eval[/COLOR]COLOR=#000000[/COLOR].[COLOR=#993300]gotoAndStop[/COLOR]COLOR=#000000[/COLOR];  
ran = [COLOR=#993300]random[/COLOR]COLOR=#000000[/COLOR]+[COLOR=#000000]1[/COLOR];  
thisText.[COLOR=#993300]load[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#993300]eval[/COLOR]COLOR=#000000[/COLOR].[COLOR=#993300]gotoAndStop[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[COLOR=#993300]if[/COLOR][COLOR=#000000]([/COLOR]myInterval != [COLOR=#993300]null[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#993300]clearInterval[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]

myInterval = [COLOR=#993300]setInterval[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]this[/COLOR], [COLOR=#0000FF]“mytimer”[/COLOR], [COLOR=#000000]2000[/COLOR], examples[COLOR=#000000][[/COLOR]count[COLOR=#000000]][/COLOR], mcs[COLOR=#000000][[/COLOR]count[COLOR=#000000]][/COLOR][COLOR=#000000])[/COLOR];

---

<div class="post-metadata">

**Author:** ![nite21](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@nite21](https://forum.kirupa.com/u/nite21)\
**Post date:** [June 3, 2008, 12:37pm UTC](https://forum.kirupa.com/t/not-to-display-repeated-mcs-and-loaded-text/262107/2 "2008-06-03T12:37:26Z")

</div>

pls somebody urgently help me in this
