
408
Data Integration (Flash Professional Only)
To create an indexed binding:
1.
If you haven’t already done so, create the example application shown in
“Creating a simple
application” on page 391
.
2.
Drag a TextArea component to the Stage and name it
myTextArea
.
3.
Select the
xmlConn
instance, click the Bindings tab, click the + symbol, and select the
description:String
property, which is in the
food
array.
Notice that on the Bindings tab, the attribute
Index for ‘food’
is dynamically added,
as shown in the following image; you’ll fill in this value in a later step.
4.
With the
results:dinner_menu:food.[n].description:String
field selected on the
Bindings tab, click Bound To, click the magnifying glass icon, select
myTextArea
, and
select the
text:string
property.
The text area will be populated by the
description
property of the
food
array.
Next, you define the index value for the
food
array, so that when the user clicks a different
item in the data grid, the correct description populates the text box.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Using Flash ...
Page 12: ...12 Contents ...
Page 110: ...110 Using Symbols Instances and Library Assets ...
Page 128: ...128 Working with Color Strokes and Fills ...
Page 156: ...156 Drawing ...
Page 190: ...190 Working with Text ...
Page 224: ...224 Working with Graphic Objects ...
Page 270: ...270 Creating Motion ...
Page 310: ...310 Working with Video ...
Page 362: ...362 Working with Screens Flash Professional Only ...
Page 386: ...386 Creating Multilanguage Text ...
Page 454: ...454 Data Integration Flash Professional Only ...
Page 500: ...500 Publishing ...
Page 534: ...534 Creating Accessible Content ...