Alright I'm building this template engine in Flash 8 Professional. It basically gets images from a user's account and they can place the images into the loaded template and manipulate them from there. Now there are a couple problems. For some reason in FireFox none of the filters ever show up. The drop shadows don't work and I can't get my Desaturate (black & white) filter to work. In IE the drop shadows work, but the desaturate filter only works the first time, if that. Both browsers are running the Flash 9 player.
What am I doing wrong that a simple thing like filters aren't working as they should?
Not sure if it helps, but here's the filter function I'm using for the desaturation process.
function getDesaturationFilter():BitmapFilter {
var r = 0.212671;
var g = 0.715160;
var b = 0.072169;
return new ColorMatrixFilter(
[r, g, b, 0, 0,
r, g, b, 0, 0,
r, g, b, 0, 0,
0, 0, 0, 1, 0]);
}
Then when the user clicks the Black & White button, it'll do something like.
Do you have some script (please not a long script ). Does it happen locally or only on the server?
It happens any time the flash file is in a browser window. In the Flash IDE, everything works as it should. In the browser though, the filters get a little funky. Everything else seems to work alright though. My guess is its a bug in the flash player but I would hope they would've debugged it a bit better than that.
Most probably so. Test the bytes loaded when you apply the filter.
Hmmm, well the thing is the image gets loaded into the mask and then the user clicks it to see the tool box. In the tool box there's the black & white button so the image is definitely fully loaded when they have access to the black & white.
I also just tested it on our Mac here with both Safari and FireFox and I'm getting the same issue with the filters not working.
After looking at it more its definitely something in conjunction with dynamically loading the image. I placed an image on there and the filter worked fine, but when I dynamically load it, it doesn't want to work as it should.