I want to replace getStyle('someStyle') in mxml with
private static const SOMESTYLE:String = "someStyle";
[..]
<mx:Image source="{getStyle(SOMESTYLE)}" />
where someStyle is defined in my CSS.
This compiles, but gives me error on runtime: Error #1069: Property SOMESTYLE not found on package.class and there is no default value.
What is the appropriate way to reference to the class constant from the mxml?
edit: I'm using Flex 4.6. This worked just fine in Flex 3.5.