CHAPTER 9
Data binding classes (Flash
Professional only)
The data binding classes provide the runtime functionality for the data binding feature in
Flash Professional 8. You can visually create and configure data bindings in the Flash
authoring environment by using the Bindings tab in the Component inspector, or you can
programmatically create and configure bindings by using the classes in the mx.data.binding
package.
For an overview of data binding and how to visually create data bindings in the Flash
authoring tool, see "Data binding (Flash Professional only)" in Using Flash.
Making data binding classes available at
runtime (Flash Professional only)
To compile your SWF file, your library must contain SWC files that contain the byte code for
the data binding classes and web service classes. If you create data bindings in Flash while
authoring, the relevant component classes are automatically added to the library. If you work
with data binding and web services at runtime, you must add the classes to your FLA file's
library. You can get these SWC files from the Classes common library.
To add the SWC files to your library:
1.
Select the Classes library (Window > Common Libraries > Classes).
2.
Open the library for your document (Window > Library).
3.
Drag the appropriate SWC files (DataBindingClasses, WebServiceClasses, or both) from
the Classes library into your document's library.
For more information on these classes, see
on page 208
and
"Web service classes (Flash Professional only)" on page
"Binding class (Flash Professional only)"
1413.
207
9
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?