Adobe FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual page 171

Migrating applications to flex 2
Table of Contents

Advertisement

In ActionScript, you can use the following constants:
CreditCardValidatorCardType.AMERICAN_EXPRESS
CreditCardValidatorCardType.DINERS_CLUB
CreditCardValidatorCardType.DISCOVER
CreditCardValidatorCardType.MASTERCARD
CreditCardValidatorCardType.VISA
Deprecated methods, properties, and events
The following validator methods, properties, and events were deprecated:
Deprecated item
Validator.enable()
Validator.disable()
Validator.isValid()
Validator.isStructureValid()
Validator.hasErrors()
Validator.field
UIComponent.validationFailed
UIComponent.validationSucceeded
Styles
When you change a validator's error message style, you must now use a class selector rather
than a type selector. You do this by prepending a period to the
example shows:
<mx:Style>
// ErrorTip { borderColor: #00FFFF } // Flex 1.5
.errorTip { borderColor: #00FFFF } // Flex 2
</mx:Style>
and
methods
and
and
events
New item
property
Validator.enabled
Validator.validate()
You now examine the Event object from the
validation to determine if any errors occurred.
You now use
Validator.source
to specify the item to
Validator.property
validate.
and
UIComponent.valid
,
events
or
Validator.valid
events
Validator.invalid
errorTip
method
and
UIComponent.invalid
and
style as the following
Validators
171

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents