# setBrightness?

**URL:** <https://forum.kirupa.com/t/setbrightness/117889>\
**Category:** Uncategorized\
**Created:** [July 31, 2004, 12:13pm UTC](https://forum.kirupa.com/t/setbrightness/117889 "2004-07-31T12:13:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Voursez](https://avatars.discourse-cdn.com/v4/letter/v/b5ac83/32.png) [@Voursez](https://forum.kirupa.com/u/Voursez)\
**Post date:** [July 31, 2004, 12:13pm UTC](https://forum.kirupa.com/t/setbrightness/117889/1 "2004-07-31T12:13:46Z")

</div>

Ok, i suk at AS, and i really need some help here. I searched the forum, without luck, so i just have to make my own post 😃

I have a MC, which i want to brighten. Of course i could animate it, but then i need to do it to all my MC’s (its kinda gonna be a gallery, with multiple pictures, each picture being a MC). So it thought a nice little AS would do it.

I know the funtion setRGB, but is there a similar, just for brightness? If so how to do it? And if your gonna write me an AS, could you please mix it with some nice easing function?

Thank you

---

<div class="post-metadata">

**Author:** ![The\_Vulcan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/the_vulcan/32/145_2.png) [@The\_Vulcan](https://forum.kirupa.com/u/The_Vulcan)\
**Post date:** [July 31, 2004, 5:22pm UTC](https://forum.kirupa.com/t/setbrightness/117889/2 "2004-07-31T17:22:35Z")

</div>

There is no brightness adjustment as far as I know.

So the only way I know to achive that effect is to adjust the alpha so it isn’t as bright.  
Or place a movie over the top of it and adjust its alpha.

I have seen posts here that adjust alpha with easing.

And placing a movie over the top of it is just a simple gotoandplay movie with a tween.

---

<div class="post-metadata">

**Author:** ![sipher](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sipher](https://forum.kirupa.com/u/sipher)\
**Post date:** [July 31, 2004, 6:14pm UTC](https://forum.kirupa.com/t/setbrightness/117889/3 "2004-07-31T18:14:43Z")

</div>

here the AS for the brightness u looking for …if u want me to included in yur mov u can post or send it to me in pm and i’ll see what i can do for u… good luck

brightOffset();  
}  
};  
}

MovieClip.prototype.brightOffset = function(alpha){  
this.c = new Color(this.containerMC)  
this.o = {rb:100,gb:100,bb:100}  
this.up = true  
this.onEnterFrame = function(){  
if(this.containerMC.\_alpha \< 100){  
this.containerMC.\_alpha += 10  
}  
if(this.up == false){  
this.o.rb -= 10  
this.o.bb -= 10  
this.o.gb -= 10  
} else {  
if(this.o.rb \< 255){  
this.o.rb \*= 1.5  
this.o.bb \*= 3  
this.o.gb \*= 1.5  
} else {  
this.o = {rb:255,gb:255,bb:255}  
this.up = false;  
}  
}  
if(this.o.rb \< 0){  
this.o = {rb:0,gb:0,bb:0}  
delete this.onEnterFrame;  
}  
this.c.setTransform(this.o)  
}  
}

---

<div class="post-metadata">

**Author:** ![Voursez](https://avatars.discourse-cdn.com/v4/letter/v/b5ac83/32.png) [@Voursez](https://forum.kirupa.com/u/Voursez)\
**Post date:** [July 31, 2004, 6:15pm UTC](https://forum.kirupa.com/t/setbrightness/117889/4 "2004-07-31T18:15:46Z")

</div>

Yes, i did that too, but it didnt work especially good. I made the borders around the small captions in PS, and i had a hard time making each layer on the top, fitting the caption under. No ideas how to make a ting with as?

---

<div class="post-metadata">

**Author:** ![Voursez](https://avatars.discourse-cdn.com/v4/letter/v/b5ac83/32.png) [@Voursez](https://forum.kirupa.com/u/Voursez)\
**Post date:** [July 31, 2004, 6:16pm UTC](https://forum.kirupa.com/t/setbrightness/117889/5 "2004-07-31T18:16:22Z")

</div>

Hehe, slipher, just saw your post. Ill just try it 😛

---

<div class="post-metadata">

**Author:** ![Voursez](https://avatars.discourse-cdn.com/v4/letter/v/b5ac83/32.png) [@Voursez](https://forum.kirupa.com/u/Voursez)\
**Post date:** [July 31, 2004, 6:18pm UTC](https://forum.kirupa.com/t/setbrightness/117889/6 "2004-07-31T18:18:42Z")

</div>

Ok, i just read through your AS, and it looks cool and all, but can you please write a usage too? Im’a noob…

---

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [July 31, 2004, 6:18pm UTC](https://forum.kirupa.com/t/setbrightness/117889/7 "2004-07-31T18:18:44Z")

</div>

also check [http://proto.layer51.com](http://proto.layer51.com) under color

---

<div class="post-metadata">

**Author:** ![sipher](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sipher](https://forum.kirupa.com/u/sipher)\
**Post date:** [July 31, 2004, 6:22pm UTC](https://forum.kirupa.com/t/setbrightness/117889/8 "2004-07-31T18:22:22Z")

</div>

good safe senocular…cool link very informative

---

<div class="post-metadata">

**Author:** ![sipher](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sipher](https://forum.kirupa.com/u/sipher)\
**Post date:** [July 31, 2004, 6:27pm UTC](https://forum.kirupa.com/t/setbrightness/117889/9 "2004-07-31T18:27:30Z")

</div>

hey u want usability try this tread…

[http://www.kirupaforum.com/forums/showthread.php?t=51430&page=26&pp=15](http://www.kirupaforum.com/forums/showthread.php?t=51430&page=26&pp=15)
