Data binding (Flash Professional only) 405
7. In the bottom pane of the Bindings tab, click Direction and select the appropriate value
from the pop-up menu. See “Configuring bindings” on page 405.
8. Repeat the steps for additional components.
The schema for a component defines which schema items are bindable. However, you might
need add a binding for a schema item that is not identified in the data source’s schema. You
can do this by selecting the Use path expression option. See “Adding bindings using path
expressions”.
Configuring bindings
When a property is selected on the Bindings tab, you can further define it using the options
located in the bottom pane of the Bindings tab. You can specify information such as Direction
and Bound To, which you’ll commonly need to specify, as well more complex properties such
as Formatter and Formatter Options:
Direction Shows a list of directions that can be set for a binding. You need to select a value
from the list:
■ In: The selected schema item is the destination of a binding. It receives a new value when
the other end of the binding changes. On the Schema tab, in is represented by a
left-pointing arrow.
■ Out: The selected schema item is the source of a binding. Whenever its value changes, the
value is copied to the other end of the binding. On the Schema tab, out is represented by
a right-pointing arrow.
■ In/Out: New data values are copied when either end of the binding changes value. On the
schema tab, in/out is represented by a two-headed arrow.
Bound To Identifies the destination schema item (another component’s property) to which
this schema item is bound. You need to specify this value. See “Defining what to bind to”
on page 406.
Formatter Shows a list of available formatters that determine how to display this binding.
For more information, see “Schema formatters” on page 440.
Formatter Options Shows the Formatting Options dialog box. The settings in this dialog
box are used at runtime to control formatting of data assigned from this schema item to the
destination schema item that is defined in the Bound To property. These settings override the
default formatting settings for the source schema item. See “Schema formatters” on page 440.
Index For If you create a binding for a schema item that is defined as a field of an
object contained within an array, you must specify an index for the array. See “Creating an
indexed binding” on page 407.