# Change color through actionscript

**URL:** <https://forum.kirupa.com/t/change-color-through-actionscript/41955>\
**Category:** flash\
**Created:** [February 3, 2004, 7:25pm UTC](https://forum.kirupa.com/t/change-color-through-actionscript/41955 "2004-02-03T19:25:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nasier](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@Nasier](https://forum.kirupa.com/u/Nasier)\
**Post date:** [February 3, 2004, 7:25pm UTC](https://forum.kirupa.com/t/change-color-through-actionscript/41955/1 "2004-02-03T19:25:44Z")

</div>

I’ve a tiny problem. I want to change the color of a circle through actionscript. Is it possible? It would be fantastic if something like this could work:

```auto

_root.cirkle._tint = #5583CE

```

ofcourse this doesn’t work but is there something similar to this?

Thanx in advance.

Nasier

---

<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:** [February 4, 2004, 9:46am UTC](https://forum.kirupa.com/t/change-color-through-actionscript/41955/2 "2004-02-04T09:46:26Z")

</div>

hi,

just now I answered that question. Let me answer again here.

create a movie clip and give the instance name as circle.

create a button.

on the first frame give the following script:

myColor=new Color(circle);

give the following script on the button

on(release){  
myColor.setRGB(0xcc0000);  
}

you can change the color value as per your wish. but don’t forget to put 0x before the color value. that is hexadecimal

Prathap
