Specifying color to specific frames within movie clip

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

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:

myColor = new Color(timeChange.TargetMC);

Tell me how it goes.

yours,
h88

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:-)

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).

you mean if the movie contain another movie

_parent._child_mc… right

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

Attach your Fla!

h88…
i think i’ve to ashamed from myself… :frowning:
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:-)

No problem!

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