# Converting Strings to MovieClips

**URL:** <https://forum.kirupa.com/t/converting-strings-to-movieclips/253188>\
**Category:** Uncategorized\
**Created:** [February 27, 2008, 11:13pm UTC](https://forum.kirupa.com/t/converting-strings-to-movieclips/253188 "2008-02-27T23:13:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbdvd7](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@dbdvd7](https://forum.kirupa.com/u/dbdvd7)\
**Post date:** [February 27, 2008, 11:13pm UTC](https://forum.kirupa.com/t/converting-strings-to-movieclips/253188/1 "2008-02-27T23:13:43Z")

</div>

I am creating a map that highlights certain states relative to the person selected. The movieclip that needs to be highlighted is in the XML with other information.  
My Problem:I am trying to pull out a variable in my XML that is actually a movieclip directory to put into my TweenLite. I can trace the directory, i.e. enfFrame\_mc.missouri\_mc, but when I try to pull it out it is a string and will not convert. Any one have any tips on how to do this a snippet of code is below:

```auto

var colorState:String; 
        
colorState = String(xmlData.pic.hmstate[targetThumbs]);
        
trace(colorState);
        
 TweenFilterLite.to(colorState, 1, {type:"Color", colorize:0x3366ff, amount:1});

```
