PDA

View Full Version : brightness



zielik
September 16th, 2008, 01:56 PM
Hi,
Im new to actionscript 3.0 and i saw that it can handle function called brightness.
I want f/e to make a red circle which brightness i want to increase and decrease by 1 when I press uparrow and downarrow.
It seems simple but I have problems with that.
Can you help me please ?
Thank you,
zil

theCodeBot
September 16th, 2008, 09:54 PM
Hi,
Im new to actionscript 3.0 and i saw that it can handle function called brightness.
I want f/e to make a red circle which brightness i want to increase and decrease by 1 when I press uparrow and downarrow.
It seems simple but I have problems with that.
Can you help me please ?
Thank you,
zil
This? (http://www.kirupa.com/forum/showpost.php?p=2057665&postcount=13")

zielik
September 17th, 2008, 05:27 AM
You mean:


on (keyPress "UPARROW")
{
this.brightness += 0.1;
}

?

theCodeBot
September 17th, 2008, 06:41 AM
You mean:


on (keyPress "UPARROW")
{
this.brightness += 0.1;
}
?
It's a link that I posted.
http://www.kirupa.com/forum/showpost.php?p=2057665&postcount=13%22
I just changed the link text lol

It changes the brightness of a movieclip by changing the RGB values is all.