Specifications
282 Data Integration: Using XML for a Timesheet (Flash Professional Only)
For more information on data binding and encoders, see “Schema
encoders” in Using Flash (in Flash, select Help > Using Flash).
10. Select the @billable schema field.
The field’s data type was automatically set to Boolean by the authoring
tool, which looks for certain patterns to guess the type of an XML
element. However, you need to modify the encoder options for the
field. For Boolean data types, the encoder options specify strings that
indicate true and false values.
11. With the @billable schema field still selected, double-click the
Encoder Options field.
12. In the Boolean Encoder dialog box that appears, enter true in the
Strings That Mean True text box and enter false in the Strings That
Mean False text box.
13. Select the @duration schema field.
The field’s data type was automatically set to Integer. This is because
the sample XML field contained only whole number values for this
attribute.
14. Select the Data Type setting for the @duration schema field and change
it to Number so that it is not limited to integer values.
15. In the Component inspector, click the Bindings tab.
16. Click the Add Binding button.
17. In the Add Binding dialog box, select the row: Array item and click OK.
18. In the Component inspector, select the Direction property and set it
to
Out.
19. Double-click the Bound To property.