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

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;

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" "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…