static constants return instance of specific class in Flex?

Posted by Sang on Stack Overflow See other posts from Stack Overflow or by Sang
Published on 2010-04-29T02:56:18Z Indexed on 2010/04/29 3:07 UTC
Read the original article Hit count: 197

Filed under:

So here's what I mean. Let's say I have a class ErrorMessages which holds all my error messages as static constants. So I could access them like ErrorMessages.PASSWORD_INVALID or ErrorMessage.PASSWORD_TOO_SHORT. I want to know if it is possible to have separate classes that hold subset of these constants and access them like ErrorMessages.PASSWORD.INVALID or ErrorMessages.PASSWORD.TOO_SHORT, etc. This way I can more structured static structure and makes it much easier to use autocomplete. I tried few different ways and couldn't figure out if this was possible..

© Stack Overflow or respective owner

Related posts about flex