Click to See Complete Forum and Search --> : Filters not working universally.
LPChris
08-01-2006, 11:48 AM
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?
cancerinform
08-01-2006, 12:20 PM
Have you checked if it is a player problem, for example if you reinstall player 8, does it work?
LPChris
08-01-2006, 03:21 PM
No, because I originally just had the Flash Player 8 on IE and it was the same as when I upgraded to 9.
LPChris
08-01-2006, 04:42 PM
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.
mc.filters = [getDesaturationFilter()];
cancerinform
08-01-2006, 04:42 PM
Do you have some script (please not a long script :)). Does it happen locally or only on the server?
LPChris
08-01-2006, 04:47 PM
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.
cancerinform
08-01-2006, 04:51 PM
I just tested your script without button and with a movieclip in Safari and in FF and it works.
LPChris
08-01-2006, 05:31 PM
I just tested your script without button and with a movieclip in Safari and in FF and it works.
Well are you dynamically loading an image into the movieclip? I'm wondering if that has a hand in the issue or what.
cancerinform
08-01-2006, 05:40 PM
Most probably so. Test the bytes loaded when you apply the filter. :)
LPChris
08-01-2006, 05:58 PM
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. :(
That's weird that it worked in your app.
LPChris
08-01-2006, 05:59 PM
By the way I want to thank you for taking your time to help me debug this issue. I was on another site and the topic was completely ignored.
LPChris
08-01-2006, 06:16 PM
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.
cancerinform
08-02-2006, 12:05 AM
I made a little fla, which works in my hands. Just replace the image with yours.
On Flashkit we don't ignore anybody if there is a glimmer of help. Important thing is to specify the problem. We also want to learn :)
flashkit.com
Copyright Internet.com Inc., All Rights Reserved.