# Random color tutorial

**URL:** <https://forum.kirupa.com/t/random-color-tutorial/5456>\
**Category:** Uncategorized\
**Created:** [September 12, 2002, 12:30am UTC](https://forum.kirupa.com/t/random-color-tutorial/5456 "2002-09-12T00:30:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lostandfund](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@lostandfund](https://forum.kirupa.com/u/lostandfund)\
**Post date:** [September 12, 2002, 12:30am UTC](https://forum.kirupa.com/t/random-color-tutorial/5456/1 "2002-09-12T00:30:59Z")

</div>

QUESTION:

how do i go about having the color of one movie clip follow the same color of the random colored movie clip?

thanks to Mr.Ilyas’s nice and short tutorial, i did my FIRST actionscript, Random Colors. yeay!

i can’t seem to find the tutorial, but the coding went like this:

myColor = Math.round (Math.random()\*0xFFFFFF);  
myColoredObject = new Color (this);  
myColoredObject.setRGB(myColor);

i added this action to one movie clip. now, can i “synchoronize” the color of another movie clip to this one?  
Can anyone help me? heh heh 😛

---

<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:** [September 12, 2002, 12:54am UTC](https://forum.kirupa.com/t/random-color-tutorial/5456/2 "2002-09-12T00:54:45Z")

</div>

i just realized. i should have posted in actionscript help. sorry. let me go ahead and do that. sorry.
