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?