We've mentioned that there are a lot of methods and properties in the ElectroServerAS object, and many of them are going to be really useful for your game development. But don't think you have to remember the syntax for even the ones you use all the time. You can install these actions directly into the Actions toolbox in the Actions panel in Flash (that's a lot of Action!), and drag and drop them into the script pane whenever you want to use them. This installation will also enable color-coding for all ElectroServerAS actions.
In order for all of these actions to work, you must include the file ElectroServerAS.as within the Flash file that is to make use of the ElectroServerAS object. ElectroServerAS.as is a text file that contains all of the ActionScript used to define the methods and properties of the ElectroServerAS object. You don't ever need to open or edit this file (unless you want to extend the object's capabilities). To include ElectroServerAS.as with your movie (which you must do to make use of its actions) follow this simple procedure:
That's it. Now when you create a SWF movie, all of the information in the ElectroServerAS.as file will be pulled into it. You do not need to insert an include action for WDDX_mx.as, because ElectroServerAS.as does that for you automatically. |