Hey folks
Again pulling my hair out due to some Flex/AS3 weirdness. The following code does not compile due to error 1120 - Access of undefined property AbstractWizardModel
<mx:HBox id="cntr_buttons" width="100%" horizontalAlign="right">
<mx:Button label="{model.getButtonLabel(AbstractWizardModel.GO_BACK)}" />
</mx:HBox>
The constant is defined (in AbstractWizardModel) as:
[Bindable]
public class AbstractWizardModel extends EventDispatcher
{
public static const GO_BACK : String = "goBack";
...
}
Replacing 'AbstractWizardModel.GO_BACK' with '"goBack"' does the trick, but what was the problem?
Thanks!
PS: Of course I am importing the AbstractWizardModel in the MXML code