# Tweening color of mc (with TextField attached to it) problem

**URL:** <https://forum.kirupa.com/t/tweening-color-of-mc-with-textfield-attached-to-it-problem/265844>\
**Category:** flash\
**Created:** [July 13, 2008, 2:25pm UTC](https://forum.kirupa.com/t/tweening-color-of-mc-with-textfield-attached-to-it-problem/265844 "2008-07-13T14:25:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![psych](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/psych/32/2839_2.png) [@psych](https://forum.kirupa.com/u/psych)\
**Post date:** [July 13, 2008, 2:25pm UTC](https://forum.kirupa.com/t/tweening-color-of-mc-with-textfield-attached-to-it-problem/265844/1 "2008-07-13T14:25:08Z")

</div>

Hi,

I have a situation where i have a MovieClip with TextField attached to it using addChild(), something like:

```auto

mcName.addChild(textField);
stage.addChild(mcName);

```

What i am trying to accomplish is tween backgorund color of movie clip without also effecting color of TextField inside it. If i try the following using Tweener:

```auto

Tweener.addTween(mcName, {_color:0xFF6600, time:0.5, transition:"linear"});

```

Then color of both mc and text field will be tweened to 0xFF6600. How can i only tween movie clip’s color?

thanks,  
best regards

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [July 13, 2008, 3:13pm UTC](https://forum.kirupa.com/t/tweening-color-of-mc-with-textfield-attached-to-it-problem/265844/2 "2008-07-13T15:13:54Z")

</div>

You have to make the background color a seperate child and mcName a ‘holder’ for the color / text.

---

<div class="post-metadata">

**Author:** ![psych](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/psych/32/2839_2.png) [@psych](https://forum.kirupa.com/u/psych)\
**Post date:** [July 13, 2008, 3:50pm UTC](https://forum.kirupa.com/t/tweening-color-of-mc-with-textfield-attached-to-it-problem/265844/3 "2008-07-13T15:50:33Z")

</div>

I just realized that while experimenting with this stuff, i added a dummy mc container and attached to it movie clip and textfield and that works. Thanks anyway sekasi

best regards
