Specifications
Create a user interface and bind the components with the web service 275
9. In the Component inspector, click Add Binding (+) again. In the Add 
Binding dialog box, select 
results:String, and then click OK. In the 
Component inspector, double-click the empty value in the Bound To 
field, and in the Bound To dialog box, select 
TextArea, <tip_ta> as 
the component path and 
text:String as the schema location. 
Click OK.
Finally, you will use a Button component and the 
trigger() method 
to trigger the service. You use the trigger method to attempt to retrieve 
a tip whenever you click the button.
10. Open the Actions panel and add the following ActionScript on Frame 
1 of the Timeline:
submit_button.onRelease = function(){
tips_wsc.trigger();
};
11.
Next, add the following ActionScript after the code from step 10. The 
code uses the 
dataProvider property to set the items in the ComboBox 
instance to the contents of the array.
products_cb.dataProvider = ["Flash", "Dreamweaver"];
12.
Save your file.
NOTE
If necessary, you can use the setStyle() method to change the color of 
the Label instance text to white using 
products_lbl.setStyle("color", 0xFFFFFF);










