Tuesday, February 23, 2010

Ideals Blog Prompts and Assignments

Our team is consists of Alex and I and our game is called: "Civic Duty: 53,595 Infected Lawyers." Our game fits into our catagory as it shows the fundemential aspects of our goverment, Rights and the Admendments and such. Our game shows what rights you have, how you use them, and why they are important.

Monday, February 1, 2010

Helpful Hints: Part 3

------Formatting ActionScript syntax------
1. General formatting guidelines: Use line breaks to make complex statements easier to read.
2. Writing conditional statements: Place conditions on separate lines in if, else..if, and if..else statements.
3. Writing compound statements: Place braces around each statement when it is part of a control structure (if..else or for), even if it contains only a single statement. Keeps it organised and easy to fix if needed.
4. Writing a for statement: Include a space following each expression in a for statement.
5. Writing return statements: Don't use parentheses [()] with any return statements that have values.

Helpful Hints: Part 2

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.