# SharedObject and mc color

**URL:** https://forum.kirupa.com/t/sharedobject-and-mc-color/149304
**Category:** flash
**Created:** [May 27, 2005, 6:09pm UTC](https://forum.kirupa.com/t/sharedobject-and-mc-color/149304 "2005-05-27T18:09:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![livestyle](https://avatars.discourse-cdn.com/v4/letter/l/48db29/32.png) [@livestyle](https://forum.kirupa.com/u/livestyle)
#### Post date: [May 27, 2005, 6:09pm UTC](https://forum.kirupa.com/t/sharedobject-and-mc-color/149304/1 "2005-05-27T18:09:50Z")

</div>

[font=verdana, arial, helvetica][size=2]Hi all,

with the code below, I can change the colour of the movie clip.  
I need the colour of that movie clip to stay the same also after  
next time visiting the page. I think it’s made by the action SharedObject. Can someone help me with that, please? Thanks.

[color=blue]function changeColor(code, obj) {  
var ColorSet = new Color(obj);  
ColorSet.setRGB(parseInt(code, 16));  
}

this.bt.onRelease = function() {  
changeColor(“6699CC”, “point”);  
};[/color][/size][/font]
