# Help with AS 3 and Movie Clips

**URL:** <https://forum.kirupa.com/t/help-with-as-3-and-movie-clips/308665>\
**Category:** flash\
**Created:** [April 28, 2010, 12:43am UTC](https://forum.kirupa.com/t/help-with-as-3-and-movie-clips/308665 "2010-04-28T00:43:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beyondflash](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@beyondflash](https://forum.kirupa.com/u/beyondflash)\
**Post date:** [April 28, 2010, 12:43am UTC](https://forum.kirupa.com/t/help-with-as-3-and-movie-clips/308665/1 "2010-04-28T00:43:35Z")

</div>

I have a series of movie clips named Imagex\_y where x is the number of the current test and y is the number of the current question.  
In as 2 I have a for loop as such:

```auto
for (i=0; i<=6; i++) {
        this["MCNAME"+i+"_"+questionnumber].visible = false;
    }

```

When I attempt to run the code above I get an error in the compiler as such:  
TypeError: Error #1010: A term is undefined and has no properties.  
How can I get this code to work in as3.0?
