# Refering to my clips

**URL:** <https://forum.kirupa.com/t/refering-to-my-clips/284111>\
**Category:** Uncategorized\
**Created:** [March 15, 2009, 1:43pm UTC](https://forum.kirupa.com/t/refering-to-my-clips/284111 "2009-03-15T13:43:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alber\_Kidd](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Alber\_Kidd](https://forum.kirupa.com/u/Alber_Kidd)\
**Post date:** [March 15, 2009, 1:43pm UTC](https://forum.kirupa.com/t/refering-to-my-clips/284111/1 "2009-03-15T13:43:25Z")

</div>

Hi,

I have created a loop to add my clips by class and give them a name

```
      tempClip = new clientsThumbs*(); 
    tempClip.x = xPos;
    tempClip.y = yPos;
    tempClip.name = clientsNames*;
    tempClip.addEventListener(MouseEvent.CLICK, focus);
    addChild(tempClip);
    xPos = xPos +200;

```

Then I want to loop through these clips and change the alpha, I have tried casting as I thought that was how you do it but I get the ‘cannot convert string’ error

```
        for(var i:int = 0; i&lt;clientsName.length; i++) {
            
       clientsNames*.alpha= 0.5;

       //OR MovieClip(clientsNames*).alpha= 0.5;
            
        }

```

How do I reference my instances by name
