1. Writing good comments: Use block comments for multiline comments and single-line comments for short comments.
2. Adding comments to classes: Use block, single-line, and trailing comments within the body of your class to comment on your ActionScript code.
3. Keeping your ActionScript code in one place: If you put your ActionScript code in a frame script, put the ActionScript code on the first or second frame on the Timeline, in a layer called Actions, which is the first or second layer on the Timeline. Makes it easier to fix errors.
4. Attaching code to objects: You must avoid attaching ActionScript code to objects. Makes it difficult to find errors.
5. About variables and scope: Understanding variable scope is important when you develop Flash applications with ActionScript. Scope indicates not only when and where you can refer to variables but also for how long a particular variable exists in an application.
6. ActionScript and Flash Player optimization: If you compile a SWF file that contains ActionScript 2.0 with publish settings ActionScript 1.0, your code functions as long as it does not use ActionScript 2.0 classes.
Weekly Post for 5/3/12
12 years ago
No comments:
Post a Comment