MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 263

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

In the Bound To dialog box, select the CheckBox component under Component Path, and
8.
click OK.
Select the Checkbox component on the Stage, and click the Parameters tab in the Component
9.
inspector.
Select Control > Test Movie. To test the functionality, type a value into the TextInput
10.
component and then deselect the CheckBox component. You should now be unable to enter
text into the TextInput component.
Adding a schema field to a schema item
When you use a DataSet component, you manually enter the schema for the component. You
might need to add schema items, which are essentially component properties (see
component property to a schema" on page
within a schema item to provide a deeper level of bindable detail. For more information, see
"Schema item settings" on page
To add a schema field to a schema item:
In the Schema tab, select the schema item to which you want to add a field.
1.
Click the Add a Field Under the Selected Field (+) button.
2.
A new field is added as a subfield of the selected property.
In the Schema Attributes pane, enter a value for Field Name. Fill in the other attributes
3.
as appropriate.
There are three possible scenarios based on the type of schema item:
Schema item of type Object, which can have subfields, attributes, or both. Attributes are
preceded with @ in the list.
Schema item of type Array, which has one subfield called [n] representing the index of the
array, which can be of any type (including Object, String, and so on).
Schema item of other types (such as Boolean, String, Number), which don't have subfields
but can have attributes. Attributes are preceded with @ in the list.
About handling data types in data binding (Flash Professional only)
Your data source's schema is represented on the Schema tab in the Component inspector. Every
item in the schema has many attributes that you can configure in the lower pane of the Schema
tab. In particular, four attributes control the handling of data types as data flows in and out of
Flash applications. These four attributes are Data Type, Encoder, Formatter, and Kind.
You might not need to change the settings of these attributes from the default values. However, in
situations where you're working with complex data types, you might need to change the values of
these attributes so Flash receives and outputs data in the correct format. See
schema item settings" on page
262). You may also need to add additional fields
289.
300.
"When to edit
Data binding (Flash Professional only)
"Adding a
263

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents