# Specifying color to specific frames within movie clip

**URL:** <https://forum.kirupa.com/t/specifying-color-to-specific-frames-within-movie-clip/8533>\
**Category:** Uncategorized\
**Created:** [November 23, 2002, 1:48am UTC](https://forum.kirupa.com/t/specifying-color-to-specific-frames-within-movie-clip/8533 "2002-11-23T01:48:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![pithcell](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@pithcell](https://forum.kirupa.com/u/pithcell)\
**Post date:** [November 23, 2002, 1:48am UTC](https://forum.kirupa.com/t/specifying-color-to-specific-frames-within-movie-clip/8533/1 "2002-11-23T01:48:15Z")

</div>

hey all,  
thanks to h88 i am using the following code which works great

myColor = new Color(timeChange);  
Time = new Date();  
Hours = Time.getHours();  
if (Hours == “8”) {  
myColor.setRGB(0x00FFFF);  
} else if (Hours == “9”) {  
myColor.setRGB(0x00FFFF);  
}

BUT, is it possible to only specify this color to a specific set of frames (can be designated by frame number or frame label) within the timeChange movie clip???

the problem is that any image, object placed after the intial frames that i want the designated color get that color also!!!

thanks so much  
Pith

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 23, 2002, 8:52am UTC](https://forum.kirupa.com/t/specifying-color-to-specific-frames-within-movie-clip/8533/2 "2002-11-23T08:52:46Z")

</div>

Why don’t u convert the target object and frames into an MC, and use the code to convert the color, you should only change the first line:

```php
myColor = new Color(timeChange.TargetMC);

```

Tell me how it goes.

yours,  
h88

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 23, 2002, 8:56am UTC](https://forum.kirupa.com/t/specifying-color-to-specific-frames-within-movie-clip/8533/3 "2002-11-23T08:56:45Z")

</div>

hi h88,  
what is the benfits of _ **TargetMC** _.  
i think when he convert all objects to the movieClip it’ll works.  
is it right? C:-)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 23, 2002, 8:58am UTC](https://forum.kirupa.com/t/specifying-color-to-specific-frames-within-movie-clip/8533/4 "2002-11-23T08:58:17Z")

</div>

TargetMC is the subMC of timeChange, so the changing of colors during the amount of time set would only change to the SubMC, which is called (TargetMC).

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 23, 2002, 9:06am UTC](https://forum.kirupa.com/t/specifying-color-to-specific-frames-within-movie-clip/8533/5 "2002-11-23T09:06:08Z")

</div>

you mean if the movie contain another movie

\_parent.\_child\_mc… right

i tried it but i didn’t work ☹  
i donno know why?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 23, 2002, 9:07am UTC](https://forum.kirupa.com/t/specifying-color-to-specific-frames-within-movie-clip/8533/6 "2002-11-23T09:07:11Z")

</div>

Attach your Fla!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 23, 2002, 9:15am UTC](https://forum.kirupa.com/t/specifying-color-to-specific-frames-within-movie-clip/8533/7 "2002-11-23T09:15:21Z")

</div>

h88…  
i think i’ve to ashamed from myself… ☹  
it’s woking now…  
i put the child\_mc in frame No. 2 so it didn’t work (i think this is the reason)… :-\  
anyway thanx man C:-)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 23, 2002, 9:16am UTC](https://forum.kirupa.com/t/specifying-color-to-specific-frames-within-movie-clip/8533/8 "2002-11-23T09:16:44Z")

</div>

No problem!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 23, 2002, 11:51pm UTC](https://forum.kirupa.com/t/specifying-color-to-specific-frames-within-movie-clip/8533/9 "2002-11-23T23:51:42Z")

</div>

hey all,  
thanks h88 for another one!!!  
is it possible within the same code to sepcifiy that it apply to a second subclip???

that is:  
myColor = new Color(timeChange.fadeInBackground AND SUBCLIP 2);  
so the background fades in, then when a user clicks a button the background fades out, using the same color (the color according to the time of course)

thanks in advance again  
P
