Connecting Tech Pros Worldwide Help | Site Map

Flash ActionScript - Filters

Newbie
 
Join Date: Oct 2008
Posts: 2
#1: Oct 14 '08
Hi,
I'm trying to control the brightness of an image through action script that would be in turn controlled by buttons.

Son on the on(release) handler I would like to atach a code that would make it brighter or darker, hopefully by controlling the color - brightness filter.

thanks,

JZ
Stang02GT's Avatar
Moderator
 
Join Date: Jun 2007
Location: USA
Posts: 1,152
#2: Oct 14 '08

re: Flash ActionScript - Filters


software development is not the correct forum for this question.


Moved to Flash/Action Script.
Newbie
 
Join Date: Oct 2008
Location: Earth
Posts: 29
#3: Nov 1 '08

re: Flash ActionScript - Filters


You will need to create variables to hold the filter information, then push the dynamic filter into the filter array for your object. However a bitmap cannot have filters applied to it so you would need to place it inside a movie clip. You could also use the ._alpha variable to control the brightness as an alternative to filters.
Reply