9.
In the Component inspector, click Add Binding (+) again. In the Add
Binding dialog box, select
Component inspector, double-click the empty value in the Bound To
field, and in the Bound To dialog box, select
the component path and
Click OK.
Finally, you will use a Button component and the
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
instance to the contents of the array.
products_cb.dataProvider = ["Flash", "Dreamweaver"];
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.
, and then click OK. In the
results:String
TextArea, <tip_ta>
as the schema location.
text:String
property to set the items in the ComboBox
Create a user interface and bind the components with the web service 277
as
method
trigger()
Need help?
Do you have a question about the FLASH 8-FLASH and is the answer not in the manual?
Questions and answers