TextField with filters


#1

Hi,

I have an issue with filters on textfields. The render is fine when exported in flash :


But the same popup in html5 just show this :

Here is the code related :

public function setBorder(opacity:Float = 0.5, thickness:Int = 4):Void
{
var shadow:DropShadowFilter = new DropShadowFilter(0, 90, 0x000000, opacity, thickness, thickness, 10);
this.textfield.filters = [shadow];
}

Do you have any idea ? I am up to date with openFL.

Regards,


#2

I did a test, each time I call the method, the font become whiter and whiter … If I apply it 5 times for example, it looks the same way as in Flash … So I have a work around, but not really optimized …


#3

Which version of OpenFL/Lime are you using ? Could you try with dev versions from develop branch for both ?


#4

I am using lime 7.1.1 and openFL 8.6.4.

Ok I will check dev version asap.

Thanks.


#5

Hi,

I have updated to 8.7.0 and seems fine now.

Thanks


#6

I wrote about this problem in June and still waiting for a solution.


#7

Last openFL version fixed my issue, did you test it ?
I had nearly the same issue, first popup opened had the correct behavior, and then, each time I opened it, the textfield was fucked.