# Referencing an alpha in a loop

**URL:** <https://forum.kirupa.com/t/referencing-an-alpha-in-a-loop/199958>\
**Category:** Uncategorized\
**Created:** [September 7, 2006, 2:49pm UTC](https://forum.kirupa.com/t/referencing-an-alpha-in-a-loop/199958 "2006-09-07T14:49:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![soupee](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@soupee](https://forum.kirupa.com/u/soupee)\
**Post date:** [September 7, 2006, 2:49pm UTC](https://forum.kirupa.com/t/referencing-an-alpha-in-a-loop/199958/1 "2006-09-07T14:49:53Z")

</div>

I’m creating a list, but want text/movieclip to have a rollover state. In the loop, how do i reference the this[“show” + i].mc\_show.\_alpha on a rollover state?

Help… please.

function mainSchedule() {  
if (loaded == filesize) {  
for (var i=0; i\<total; i++) {  
this[“show” + i].mc\_time.text = showtime\*;  
this[“show” + i].mc\_show.text = showtitle\*;  
this[“show” + i].mc\_episode.text = “Episode:”;  
this[“show” + i].mc\_episodename.text = episodetitle\*;  
this[“show” + i].mcClick1.index=i;  
this[“show” + i].mcClick2.index=i;  
this[“show” + i].mcClick1.onRelease = function() {  
getURL(\_root.showurl[this.index]);  
}  
this[“show” + i].mcClick1.onRollOver = function() {  
\_root.show[this.index].mc\_show.\_alpha = 50;  
trace(this[“show” + (this.index)].mc\_show.\_alpha);  
}

```
		this["show" + i].mcClick2.onRelease = function() {
			getURL(_root.episodeurl[this.index]);
		}
	}
}

```

}
