# Changing colour of button movie clip child

**URL:** <https://forum.kirupa.com/t/changing-colour-of-button-movie-clip-child/289279>\
**Category:** flash\
**Created:** [May 28, 2009, 12:46pm UTC](https://forum.kirupa.com/t/changing-colour-of-button-movie-clip-child/289279 "2009-05-28T12:46:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Buglish](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Buglish](https://forum.kirupa.com/u/Buglish)\
**Post date:** [May 28, 2009, 12:46pm UTC](https://forum.kirupa.com/t/changing-colour-of-button-movie-clip-child/289279/1 "2009-05-28T12:46:07Z")

</div>

Hi,  
I have a few buttons which I need to change the state colors using AS.  
I am able to change the whole button color but not the state object (converted to a movie clip).

All the variables are dynamic and I have not been able to get to the child object.  
var block\_color = new Color("\_root.c\_Angola.c\_1");  
block\_color.setRGB(“0x234234”);  
OR  
var block\_color = new Color(“c\_1”);  
block\_color.setRGB(“0x234234”);

How do I access the movie object which is in a button up state?

See files :

> **[mainflashmap.xml](http://www.mediafire.com/file/jchrtyymjm4/mainflashmap.xml)**
>
> MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.

  

> **[Map\_Update\_CS3\_test2\_v3.fla](http://www.mediafire.com/file/zenmwumkrok/Map_Update_CS3_test2_v3.fla)**
>
> MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.

Regards,  
Bug
