User Guide
10 Web Service Tutorial: Macromedia Tips (Flash Professional Only)
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"];
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);
12.
Save your file.
13.
Test the application (Control > Test Movie). Select Flash from the ComboBox instance and
click the Get Tip button. The results should look similar to the following graphic:
Select Dreamweaver and click the Get Tip button again to view another tip.