# Old Color Change Code doesn't work in 7, 8

**URL:** <https://forum.kirupa.com/t/old-color-change-code-doesnt-work-in-7-8/173915>\
**Category:** flash\
**Created:** [December 30, 2005, 8:03pm UTC](https://forum.kirupa.com/t/old-color-change-code-doesnt-work-in-7-8/173915 "2005-12-30T20:03:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonoda](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jasonoda](https://forum.kirupa.com/u/jasonoda)\
**Post date:** [December 30, 2005, 8:03pm UTC](https://forum.kirupa.com/t/old-color-change-code-doesnt-work-in-7-8/173915/1 "2005-12-30T20:03:12Z")

</div>

in older versions of flash, to change colors i used:

```auto
onClipEvent (load) {
    colorObj = new Color(_root.player);
}
onClipEvent (enterFrame) {
    colorOBJ.setTransform({ra:100, rb:(_root.colrb), ga:100, gb:(_root.colgb), ba:100, bb:(_root.colbb)});
}

```

where \_root.colrb are variables that change.

it seems in flash 7 and 8 this doesnt work for some reason. I’ve noticed that some things such as hitTest, are case sensitive in 7 and 8, but not in 5, where i often wrote it just as hittest. is there something im missing here in terms of case? or do i just have to write the code completely different in 7, 8.
