MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 267

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

Advertisement

Adding a binding
To add a binding, click the Add Binding (+) button on the Bindings tab. The Add Binding dialog
box appears.
This dialog box shows all the schema items (properties) for the selected component. You use this
dialog box to select which property you want to expose for binding. Component properties
appear as root nodes within the schema tree. An arrow icon represents whether a schema item has
read/write access, as follows: a right-pointing arrow represents a write-only property, a left-
pointing arrow represents a read-only property, and a bidirectional arrow represents a read-write
property. (See
"Configuring bindings" on page
To walk through the steps of creating a binding, see
which creates a simple data application, or
demonstrates how bindings connect two UI components.
In general, follow these steps to add a binding:
Select the component on the Stage for which you want a binding.
1.
In the Component inspector, click the Bindings tab.
2.
Click the Add Binding button. The Add Binding dialog box opens.
3.
Select the property for which you want to add a binding.
4.
In the bottom pane of the Bindings tab, click Bound To. The value field becomes editable.
5.
Click the magnifying glass icon in the field and select the component path and schema location
6.
to bind to. See
"Defining what to bind to" on page
In the bottom pane of the Bindings tab, click Direction and select the appropriate value from
7.
the pop-up menu. See
Repeat the steps for additional components.
8.
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
268.)
"A simple binding example" on page
"Configuring bindings" on page
"Creating a simple application" on page
269.
268.
"Adding bindings using path
Data binding (Flash Professional only)
256,
259, which
expressions".
267

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents