# Movie Clips as variables

**URL:** <https://forum.kirupa.com/t/movie-clips-as-variables/251410>\
**Category:** flash\
**Created:** [February 8, 2008, 3:28am UTC](https://forum.kirupa.com/t/movie-clips-as-variables/251410 "2008-02-08T03:28:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nacritico](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nacritico](https://forum.kirupa.com/u/nacritico)\
**Post date:** [February 8, 2008, 3:28am UTC](https://forum.kirupa.com/t/movie-clips-as-variables/251410/1 "2008-02-08T03:28:30Z")

</div>

this is the stupidiest question ever… but in my whole time working with flash, I’ve never been able to understand this, and noone has never been able to explain to me…  
which is the use of having “variable movieClips”?? …  
I mean, if I have this:

```auto

var SuperAwesomeGuy:MovieClip = new MovieClip()

```

the only usefull things I could do with it is the following (which is very usefull if you are using a “for…in”):

```auto

var variableMovie:MovieClip = _root.attachMovie("movie","movie-with-complicated-name"+i,random_depth)
variableMovie._x = 200
variableMovie._y = 500

```

and I didn’t found anything else usefull…  
so please, can you explain what a “variable movie clip” is for??..  
I would really apreciate it 🙂 …

salu2’s
