Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Flash Data Binding Tutorial
Author: Brady White
| Website: http://www.bradywhite.net |
Step 4: Data bind Combobox to XMLConnector
Select your Combobox. In your Component Inspector, select the Bindings Tab. Press the ’+’ to add a new data binding. Select dataProvider : Array , press OK. In your Component Inspector go to the ‘bound to’ field and press the magnifying glass. In the Component path window select XMLConnector. Our schema for the XMLConnector will now appear in the Schema location window. In the right window, select myImage : Array. Press OK. [ If an error pops up saying you require an instance name, you may insert the instance name (‘images_xml’) for the XMLConnector here. Press OK. ]

I bet you’re a little excited, cause I am
. Let’s add the only line of actionscript to this movie so that we can test if our ComboBox is correctly synced up to the XMLConnector. Select the first frame in ‘A’ layer. Open your actions panel (Window – Development Panels – Actions or F9). Copy and paste this line of code:
images_xml.trigger();
Go ahead and test your movie (Control -> Test Movie or Ctr-Enter). Your combo box should populate, crazy eh?

'
| » Level Intermediate |
|
|
Added: : 2004-12-21
Rating: 8.00 Votes: 9
Hits: 463
|
| » Author |
|
Brady White is a Flash Web Developer based in Orem, UT. I specialize in High-End Flash Web Applications as well as Web Standards Compliant web sites.
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (661 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|