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.

2 comments:

  1. You only did one-half of the 10 categories -50
    50/100

    ReplyDelete
  2. I see you finished the assignment: I will correct livegrades accordingly.

    ReplyDelete