problem with ColorMatrixFilter and external images
hi guys,
im having a problem with a site im currently making for work. part of the site is a gallery section, where thumbnails of movies come up in a little side area that you then click to view the movie in question.
im trying to get an effect to work, whereby the thumbnails (external images loaded using the MovieClipLoader) are desaturated and when you rollover them they regain their color. my problem is this:
when i initially desaturate the image in onLoadInit() and subsequently try to bring the colour back, nothing happens. the matrix is changing and the filter is being applied, so that's not the problem.
i then tried it the other way, starting off with the images normal, and desaturating on rollover and resaturating on rollout. this worked no problems.
so these are my thoughts on it:
when desaturating the image in onLoadInit() this is then set as the "proper" saturation, so when i go to try and resaturate the image, its bringing it to this state, hence stuff going on in the background but nothing visual happening.
not desaturating the image in onLoadInit() allows the proper image saturation to be recorded so stuff goes on in the background and you can see things happening.
this might seem a bit rambling, so to make it simpler, by desaturating the image in onLoadInit(), before the image is initially drawn, flash takes the image as essentially black and white. not desaturating it allows flash to "record" the color data. or something..
has anyone got any experience with this? im coding in cs3, but as actionscript 2.0 and exporting for flash 8 if it makes a difference
thanks
damian