Schema data types (Flash Professional only)

A data type is an object that represents all the runtime logic needed to support a particular data type. A data type can be a scalar type, such as int, string, date, currency amount, or zipcode. It can also be a complex type, with subfields and so on. A data type can test a data value to determine if it is valid for that data type. The number of data types allowed is unlimited, and you can create additional custom data types. Data types are defined by XML files found in the Flash MX Professional 2004 Configuration/DataTypes folder. The definition includes the following metadata:

The following data types ship with Flash MX Professional 2004:

Note: These data types are able to perform validation: Custom, Integer, Number, PhoneNumber, SocialSecurity, String, ZipCode. These data types are able to convert from various other data types when you assign to them: Boolean, DataProvider, Integer, Number, String, XML.

Array Array data type. There are no validation options.

Attribute XML attribute. There are no validation options.

Boolean Boolean data type.There are no validation options.

Custom Allows you to add your own custom class to check for this special kind of validation. The Actionscript class has to be in the classpath and formatted as follows:

class myCustomType extends mx.databinding.CustomValidator {
  function validate(value) {
      ... some code here
   }
}

DataProvider DataProvider data type. There are no validation options.

Integer Integer data type. A validation option can be set up to define the minimum and maximum range for the integer value.

Number Number data type. Like Integer, this option allows you to set up a range for minimum and maximum number values.

Object There are no validation options.

PhoneNumber There are no validation options.

SocialSecurity There are no validation options.

String This option allows you to set up the minimum and maximum number of characters for a string value.

XML There are no validation options.

ZipCode There are no validation options.