Create the user interface
13
Note:
The XMLConnector component stores information internally as strings. When a request is
made for the data through a DataBinding component, you can define how the string data is
converted into the correct ActionScript types. This is accomplished by selecting an item within the
Schema Tree pane and modifying its settings.
7.
Select the Date schema field. Its type is set to String. This is because the Flash authoring tool
cannot determine that it is a date type based on its value. You need to give it some additional
information to encode this value correctly.
8.
Select the Data Type parameter for the Date schema field and change it to Date. This tells the
DataBinding component to try to work with this value as a date.
For more information on data binding and data types, see “Schema data types” in the “Data
binding” section of the “Data Integration” chapter in
Using Flash
(in Flash, select Help >
Using Flash).
9.
Select the encoder parameter for the Date schema field and change it to Date. Select the encoder
options parameter and select the value “MM/DD/YYYY”. This tells the DataBinding
component how the string value is represented in the XML file. With this information, the
DataBinding component can successfully take any string in this format and convert it into an
ActionScript date object.
For more information on data binding and encoders, see “Schema encoders” in the “Data
binding” section of the “Data Integration” chapter in
Using Flash
(in Flash, select Help > Using
Flash).
Summary of Contents for FLASH MX 2004-DATA
Page 1: ...Data Tutorials...
Page 4: ...4 Contents...
Page 20: ...20 XUpdate Tutorial Update the Timesheet Flash Professional Only...