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 youre a little excited, cause I am
. Lets 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 Votes: 8 |
| » 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) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!