# Match 2 different ActionScripts

**URL:** <https://forum.kirupa.com/t/match-2-different-actionscripts/87628>\
**Category:** flash\
**Created:** [April 22, 2005, 12:03pm UTC](https://forum.kirupa.com/t/match-2-different-actionscripts/87628 "2005-04-22T12:03:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flasherik](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@Flasherik](https://forum.kirupa.com/u/Flasherik)\
**Post date:** [April 22, 2005, 12:03pm UTC](https://forum.kirupa.com/t/match-2-different-actionscripts/87628/1 "2005-04-22T12:03:00Z")

</div>

Hi,

Can somebowy help me with the following:  
On frame 1, I have 2 different MC’s (“LetterY” & “Symbol5”).

They get both a Random color by Actionscript by uploading or refreshing the page. But they both have a different choosen color. Example ‘Blue and green’.

What I want to try/do is to get “LetterY & Symbol5” the same Randomised color by “ONE” Actionscript on frame 1.  
So I get the SAME Colordefinition (Randomised) for “LetterY” & “Symbol5” and by example they are both Orange.

Can somebody help me?

TX !

See below the AC at the moment.

* * *

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

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