Replaced FlashErrorCodes.as with fixErrorMessage.as and now using it in
multiple places.