# Switching Variables With Movieclips \[FMX\]

**URL:** <https://forum.kirupa.com/t/switching-variables-with-movieclips-fmx/102305>\
**Category:** Uncategorized\
**Created:** [February 22, 2004, 2:07am UTC](https://forum.kirupa.com/t/switching-variables-with-movieclips-fmx/102305 "2004-02-22T02:07:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)\
**Post date:** [February 22, 2004, 2:07am UTC](https://forum.kirupa.com/t/switching-variables-with-movieclips-fmx/102305/1 "2004-02-22T02:07:27Z")

</div>

Alright, outta nowhere this just hit me and I’m dying to know.

I’m trying to make a game where you can customize your character. Therefore, the head is changeable, the shoes, etc. But all I need is the head and I can take it from there.

How can I create a code that will show a different head everytime you press a button. And everytime you press the button, a variable will hold the current head name.

(The heads are drawn out as movieclips and in the library. Their ID’s are Head1, Head2, etc.)
