# Manipulating movieclips instances by code as3

**URL:** <https://forum.kirupa.com/t/manipulating-movieclips-instances-by-code-as3/310281>\
**Category:** Uncategorized\
**Created:** [June 6, 2010, 7:20pm UTC](https://forum.kirupa.com/t/manipulating-movieclips-instances-by-code-as3/310281 "2010-06-06T19:20:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pluis3103](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@pluis3103](https://forum.kirupa.com/u/pluis3103)\
**Post date:** [June 6, 2010, 7:20pm UTC](https://forum.kirupa.com/t/manipulating-movieclips-instances-by-code-as3/310281/1 "2010-06-06T19:20:19Z")

</div>

Hi  
I have the following code to insert a kind of paging in as3  
var xPos: Number = 10;  
for (var i: Number = 0; i \<clips.length; i + +) (  
ItemNo ItemNum var = new ();  
ItemN.x xPos + = 10;  
ItemN.y = 0;  
ItemN.ID = i +1;  
ItemN.name = “ItemN\_” + (i +1);  
trace (ItemN.name);  
paginacao.addChild (ItemNo);  
trace (ItemN.name);  
ItemN.MC\_Active.MC\_Label.TXT\_Label.text = i +1;  
xPos = xPos + 45;  
ItemN.addEventListener (MouseEvent.CLICK, funcaoNavegar);  
)  
where: ItemNum () is a movieclip with other movieclips inside  
I need to click on them to handle their condition, for example:  
clicking on two, change your status to visible = false;  
someone help me?  
for example when I give the name of the instance I gave “ItemN\_1” it gives error  
Thanks
