# Doubt on color palette, very urgent.. (plz)

**URL:** <https://forum.kirupa.com/t/doubt-on-color-palette-very-urgent-plz/208000>\
**Category:** Uncategorized\
**Created:** [November 23, 2006, 7:14pm UTC](https://forum.kirupa.com/t/doubt-on-color-palette-very-urgent-plz/208000 "2006-11-23T19:14:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![goldpandian](https://avatars.discourse-cdn.com/v4/letter/g/e8c25b/32.png) [@goldpandian](https://forum.kirupa.com/u/goldpandian)\
**Post date:** [November 23, 2006, 7:14pm UTC](https://forum.kirupa.com/t/doubt-on-color-palette-very-urgent-plz/208000/1 "2006-11-23T19:14:14Z")

</div>

hi … i have created color palette…  
using the following codes.

import flash.geom.ColorTransform;  
import flash.geom.Transform;  
var colorTrans:ColorTransform = new ColorTransform();  
var trans:Transform = new Transform(\_root.mc\_frame.mc\_back.mc\_bg);  
var linkageId:String = “libraryBitmap”;  
var myBitmapData:BitmapData = BitmapData.loadBitmap(linkageId);  
var mc:MovieClip = this.createEmptyMovieClip(“mc”, this.getNextHighestDepth());  
mc.attachBitmap(myBitmapData, this.getNextHighestDepth());  
color\_txt.text = “from palette”;

var mouseListener:Object = new Object();  
mouseListener.onMouseMove= function()  
{  
var Rgb = “0x”+myBitmapData.getPixel(\_xmouse,\_ymouse).toString(16);  
colorTrans.rgb = Rgb;  
c\_text.ctext.text = Rgb;  
trans.colorTransform = colorTrans;  
};  
Mouse.addListener(mouseListener);

in that code the color has change when the mousemove over the movieclip.  
but i want. the color of the targeted movieclip need to be change on the mouse move, at same time if i didn’t click on the palette the the old color need to be return to the original state… for example plz check the" [www.yourminis.com](http://www.yourminis.com) "color palette… i want as color palette action as like in that site. plz help me… i have straggle a lot…  
Advance thanks to who is going to help me…
