# AS3 Wierd Problem!

**URL:** <https://forum.kirupa.com/t/as3-wierd-problem/215813>\
**Category:** flash\
**Created:** [February 10, 2007, 7:27pm UTC](https://forum.kirupa.com/t/as3-wierd-problem/215813 "2007-02-10T19:27:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JD77](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@JD77](https://forum.kirupa.com/u/JD77)\
**Post date:** [February 10, 2007, 7:27pm UTC](https://forum.kirupa.com/t/as3-wierd-problem/215813/1 "2007-02-10T19:27:06Z")

</div>

import flash.display._;  
import flash.geom._;  
import flash.events.\*;

var B:BitmapData = new BitmapData(550, 400, false, 0x000000);  
var B2:Bitmap = new Bitmap(B);  
this.addChild(B2);  
function OEN(event:Event):void{  
B.colorTransform(new Rectangle(0,0,550,400), new ColorTransform(1, 1, 1, 1, 100, 100, 100, 0));  
};  
addEventListener(Event.ENTER\_FRAME,OEN);

The code looks perfect but it doesnt work

the colorTransform applies once! please help!
