# Color

**URL:** <https://forum.kirupa.com/t/color/2849>\
**Category:** Uncategorized\
**Created:** [March 26, 2002, 9:23pm UTC](https://forum.kirupa.com/t/color/2849 "2002-03-26T21:23:29Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [March 26, 2002, 9:23pm UTC](https://forum.kirupa.com/t/color/2849/1 "2002-03-26T21:23:29Z")

</div>

i have a simple question plz help me\ri have write a script for little game called baloon\rthe idea is simple is just\ri have 4 drawed baloon and 5 button with a deffrent color when i click on any button and hit any baloon just get colored with this color.\rmy problem is i want to color all the baloon with any button color from this 5 button and when the ballon get colored \rfly in the air \rthe script baloon MC is\ronclipevnt(mousedown){\rif (\_root.hitTest(\_root.\_xmouse,\_root.ymouse)){\r\_root.check(this)\r\_root.x1=1\r}}\r\rthe check function is have a color value\r\rand the button it’s script for each button\ron(press){\rindex==1\r}\rbut my real probelm in this script when i press without any press on any button just press on the baloon get away \ronclipevent(enterframe){\rif(\_root.X1==1 && \_root.X2==1 &&\_root.X3==1 && \_root.X4==1){\r\_root.MC.\_y +=5\r}}\r\r\rthx

---

<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:** [March 26, 2002, 11:15pm UTC](https://forum.kirupa.com/t/color/2849/2 "2002-03-26T23:15:40Z")

</div>

here is a fla with a function that will change the colors of multiple movie clips.\r[jeremydecker.s5.com/color…bjects.swf\r[url=“http://jeremydecker.s5.com/color\_multiple\_objects.fla”]jeremydecker.s5.com/color…bjects.fla](http://jeremydecker.s5.com/color_multiple_objects.swf)\rhope that helps!\r:) \rjeremy

---

<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:** [March 26, 2002, 11:27pm UTC](https://forum.kirupa.com/t/color/2849/3 "2002-03-26T23:27:33Z")

</div>

There’s a tute called s’thing like setRGB on this site. Check it out, I think that you’ll be able to do what you want to do.\r\rpom 0]

---

<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:** [March 27, 2002, 10:44am UTC](https://forum.kirupa.com/t/color/2849/4 "2002-03-27T10:44:59Z")

</div>

you should also check out “for…in”, in the action script dictionary provided with Flash.
