Download Print this page

MACROMEDIA FLASH MX 2004-DATA Tutorials Manual page 10

Advertisement

Open the Actions panel and add the following ActionScript on Frame 1 of the Timeline:
10.
submit_button.onRelease = function(){
tips_wsc.trigger();
};
Next, add the following ActionScript after the code from step 10. The code uses the
11.
dataProvider
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);
Save your file.
12.
Test the application (Control > Test Movie). Select Flash from the ComboBox instance and
13.
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.
10
Web Service Tutorial: Macromedia Tips (Flash Professional Only)
property to set the items in the ComboBox instance to the contents of the array.

Hide quick links:

Advertisement

loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-DATA and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx 2004 - actionscript