Change color through actionscript

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:


_root.cirkle._tint = #5583CE

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

Thanx in advance.

Nasier

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