# Change Brightness with AS3

**URL:** <https://forum.kirupa.com/t/change-brightness-with-as3/237813>\
**Category:** flash\
**Created:** [September 4, 2007, 9:52am UTC](https://forum.kirupa.com/t/change-brightness-with-as3/237813 "2007-09-04T09:52:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![am1891](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@am1891](https://forum.kirupa.com/u/am1891)\
**Post date:** [September 4, 2007, 9:52am UTC](https://forum.kirupa.com/t/change-brightness-with-as3/237813/1 "2007-09-04T09:52:18Z")

</div>

Hi, I have created a movieclip object, which is added to the stage using a class in a separate \*.as file. I am adding multiple instances of the object onto the stage and wish to change the brightness of the objects each time I had one. I have the following code so far:

```auto

...
public class RoomClass extends MovieClip
{
  private var rooms:Room;
  private var MAX_RMS:int = 3;
 
  public function RoomClass()
  {
     ...
     for(var i:int=0;i<MAX_RMS;i++)
     {
        rooms = new Room();
        addChild(rooms);
     }
  }
}
...

```

Can anyone suggest how I may go about changing the brightness of my object.

Thanks in advance
