# How can I use this Code Snippet in my Project File?

**URL:** <https://forum.kirupa.com/t/how-can-i-use-this-code-snippet-in-my-project-file/318686>\
**Category:** flash\
**Created:** [January 27, 2011, 6:22am UTC](https://forum.kirupa.com/t/how-can-i-use-this-code-snippet-in-my-project-file/318686 "2011-01-27T06:22:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![learner\_7n](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Post date:** [January 27, 2011, 6:22am UTC](https://forum.kirupa.com/t/how-can-i-use-this-code-snippet-in-my-project-file/318686/1 "2011-01-27T06:22:38Z")

</div>

Hi,

I got this code from the following website:

How can I use this Code Snippet in my Project File to see the result?

[http://snipplr.com/view/15783/as3-tint/](http://snipplr.com/view/15783/as3-tint/)

```auto
private function tint (clip:Object, newColor:Number):void
{
 var colorTransform:ColorTransform=clip.transform.colorTransform;
 colorTransform.color=newColor;
 clip.transform.colorTransform=colorTransform;
}

```
