I’ve recently started a project that uses new Flex 4 skinning. It was going great until I’ve added some SkinParts and it started throwing a strange error message on those definitions :
1020: Method marked override must override another method.
After starring at it for a while with utter confusion, I’ve started to investigate what might be the problem. Turns out I was adding skin parts to a spark Group, and the documentation states:
To improve performance and minimize application size,
the Group container cannot be skinned.
If you want to apply a skin, use the SkinnableContainer instead.
Which is exactly what I needed to do. Too bad there was no hint about it in the error string.