# Accessing clips I attached?

**URL:** <https://forum.kirupa.com/t/accessing-clips-i-attached/225836>\
**Category:** flash\
**Created:** [May 16, 2007, 3:43am UTC](https://forum.kirupa.com/t/accessing-clips-i-attached/225836 "2007-05-16T03:43:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geoken](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@geoken](https://forum.kirupa.com/u/geoken)\
**Post date:** [May 16, 2007, 3:43am UTC](https://forum.kirupa.com/t/accessing-clips-i-attached/225836/1 "2007-05-16T03:43:27Z")

</div>

Ok, I’m guessing there is an easy answer here but I can’t figure it out.

I’m attaching a bunch of clips like this; (mainBut is the name of the class)

for (var i = 0; i\<buttons.length; i++) {

var mc = “b”+i;

mc = new mainBut;  
mc.tex.text = buttons\*;  
mc.x = pos;  
mc.y = -30;  
addChild(mc);

}

So now how do I control the clips I’ve made? Say, for example, a button is supposed to tween one of the clips alpha’s to zero, how would I adress the clip. I tried b0 and it didn’t work. I hard partial success by pointing my button at ‘mc’ but that obviously only allows me to control the last button.
