Using ActionScript 2.0 Components |
|
|
|
| Creating an Application with Components > Build the main page > Set the data types of component instances | |||
Next you will assign data types to each of the component instances you dragged to the Stage earlier in the tutorial.
ActionScript 2.0 uses strict data typing, which means that you assign the data type when you create a variable. Strict data typing makes code hints available for the variable in the Actions panel.
/* Data type instances on the Stage; other instances might be added at
runtime from the Cart class.*/
var problems_cb:ComboBox;
var products_dg:DataGrid;
var cart_dg:DataGrid;
var products_xmlcon:mx.data.components.XMLConnector;
|
NOTE |
The instance names you specify here must agree with the instance names that you assigned when you dragged the components to the Stage. |
|
|
|
|