Flex and css: Unrecognized fill style type: 42
We’ve had a strange bug for some time now that I’d like to share because we finally found it.
the scenario:
1 css stylesheet for a flex application.
8 windows computers with flex builder 2. 7 compiles the css perfectly the 8th throws a compile time error. Specifically: Unrecognized fill style type: 42
1 Linux server compiling with the command line compiler which also throws the error.
we tried:
copying the sdk from one of the non-complaining machines to both the windows and the linux server… it didn’t help a bit. When flex 3 arrived we tried compiling to flex 3 and all machines worked, but going back to flex 2 … the same problem.
The fix:
I figured there was only one way. Removing one line at a time from the css until it compiled. Unfortunately the line resulting in the error was embedding symbols from an extremely large swf file.
So next step was to remove one movieclip at a time to find the sinner. And let me tell you that took some time. The sinner turned out to be a shape tween. Once it was removed the css compiled as it was supposed to.
I expect the behaviour was not intentional since most machines compiled the css without any problems at all. If anyone out there run in to the same problem I hope this was helpful.
Tags: css, error, flex, shape tween, stylesheet