text:  semicolon has been added after the gotoAndStop ("init") statement.
  The code now reads:
  on (release) {
  gotoAndStop ("init");
  }
  The last sentence of the paragraph, "Here's the code:" has been removed.
  The comment used to read:
  // Sets the finalGreeting to "Hello, Karsten?"
  It has been changed to read:
  // Sets the finalGreeting to "Hello Karsten?"
  In the example code, the word "Pain" has been changed to start with a lowercase "p" rather than a capital "P". The code now reads:
  paradox = "pain is pleasure, pleasure is pain";
  In the code sample that calculates the volume of a cylinder, the variable
  "circleArea" is defined on line 3, but the variable "area" was subsequently
  used on line 4. line 4's variable "area" was changed to "circleArea",
  so it reads:
  var cylinderVolume = circleArea * height;
  "If the divisor is zero, the result is NaN" is incorrect.
  It isn't feasible to make the full correction for this in a reprint. The full
  correction is as follows:
  If the divisor (denominator) is zero:
  The result is NaN if the numerator is zero or non-numeric
  The result is Infinity if the numerator is a positive number
  The result is -Infinity if the numerator is a negative number
  Some examples:
  trace (0/0); // NaN
  trace ("a"/0); // NaN
  trace (1/0); // Infinity
  trace (-1/0); // -Infinity
  Note that if the numerator is Infinity:
  The result is NaN if the divisor is Infinity, -Infinity, or non-numeric
  The result is Infinity if the divisor is zero or a non-infinite positive
  number
  The result is -Infinity if the divisor is a negative, non-infinite number
  Some examples:
  trace(Infinity/Infinity); // NaN
  trace(Infinity/-Infinity); // NaN
  trace(Infinity/"a"); // NaN
  trace(Infinity/0); // Infinity
  trace(Infinity/1); // Infinity
  trace(Infinity/1000); // Infinity
  trace(Infinity/-1); // -Infinity
  trace(-Infinity/2); // -Infinity
  trace(-Infinity/-2); // Infinity
  Note finally that any non-infinite number divided by Infinity is 0
  trace (0/Infinity); // 0
  trace (1/Infinity); // 0
  trace (-1000/Infinity); // 0
  "If the divisor is zero, the result is NaN."
  It has been changed to:
  "If the divisor is zero, the result is Infinity."
  In the code sample that checks for a zero divisor, line 3 is missing curly braces
  around the else statement. Line 3 should read:
  } else {
  In the second code sample on the page, the diameter variable is incorrectly set to
  ball.radius instead of ball.radius * 2. Line 1 of the code should read:
  diameter = ball.radius * 2;
  In the second code sample on the page, the value of Math.PI is missing a "1". Line 3
  of the code should read:
  trace("pi is: " + PI); // Displays: 3.14159... (PI is a property of Math)
  The second-last sentence used to read:
  "by invoking our generic movieClip() function"
  It has been changed to read:
  "by invoking our generic moveClip() function"
  In the first code example, the word "function" was missing a "c". Line 2 of
  the example now reads:
  function getName() {
  In the makeClip function example, the code used to read:
  theClip.duplicateMovieClip(the clip._name...)
  It has been changed to read:
  theClip.duplicateMovieClip(theClip._name...)
  "Unlike the keyPress button event, keyDownclip events occur when any
  key--not just a specific key--is pressed."
  has been changed to:
  "Unlike the keyPress button event, keyDown clip events occur when any
  key--not just the specific key--is pressed."
  The words "keyPress" and "keyDown" are italicized. The word "clip"
  is not italicized.
  The sentence used to read: "Like the letters in the alphabet or the amino acid
  sequences in a strand of DNA..."
  It now reads: "Like the letters in the alphabet or the sequence of
  base-pairs in a strand of DNA..."
  The word "no" at the end of the first line of the footnote should be "not"
  (the "t" is missing).
  Thus, the footnote should read "...contains clips not based..." instead
  of "...contains clips NO based..."
  The #include cannot have a comment on the same line. The line:
  #include "questionsArray.as" // See explanation later in this example
  has been broken into two lines, as follows:
  // See explanation later in this example
  #include "questionsArray.as"
  The MIME type in the tip text (marked by an owl graphic), is incorrectly listed as:
  "application/x-www-urlform-encoded". The correct MIME type is: "application/x-www-
  form-urlencoded" (as specified by the W3C). This error also appears under
  loadVariables() (p.489), XML.contentType() (p.610), and XML.send() (p.626).
  "exec", "C:/WINDOWS/NOTEPAD.EXE")
  has been changed to:
  fscommand("exec", "C:/WINDOWS/NOTEPAD.EXE");
  In the example for #include showing syntax differences between Macintosh
  and Windows file paths, the example for Macintosh used a slash character
  ("/") to delimit folders:
  #include "Mac HD/Desktop folder/working/myScript.as"
  It was changed so that a colon (":") is used instead. It now reads:
  #include "Mac HD:Desktop folder:working:myScript.as"
  When passed a below-range frame number, the MovieClip.gotoAndPlay() method actually
  behaves differently than the global gotoAndPlay() function. The second line of the
  frameNumber argument for MovieClip.gotoAndPlay() should, hence, be replaced with:
  "If frameNumber is less than 1, the call to MovieClip.gotoAndPlay() is ignored. If
  frameNumber is greater than the number of frames in mc's timeline, the playhead is
  sent to the last frame. Note that this behavior differs from the global version of
  gotoAndPlay(), where a value less than 1 is treated as 1."
  When passed a below-range frame number, the MovieClip.gotoAndStop() method actually
  behaves differently than the global gotoAndStop() function. The second line of the
  frameNumber argument for MovieClip.gotoAndStop() should, hence, be replaced with:
  "If frameNumber is less than 1, the call to MovieClip.gotoAndStop() is ignored. If
  frameNumber is greater than the number of frames in mc's timeline, the playhead is
  sent to the last frame. Note that this behavior differs from the global version of
  gotoAndStop(), where a value less than 1 is treated as 1."
  "when a clip is called."
  It has been changed to read:
  "when a clip is scaled."
  The second sentence used to read:
  Main movies do support...
  It has been changed to read:
  Main movies don't support...
  "See Also: Number.MX_VALUE"
  has been changed to read:
  "See Also: Number.MAX_VALUE"
  There wass a bad break of parentheses following the word "play" at the end of
  the second line of the descrition.
  It looked like this:
  ....bears the play(
  ) function invocation...
  It has been changed to look like this:
  ....bears the play()
  function invocation...
  On page 605, the word "indexes" after the colon at the end of the first
  paragraph was deleted.
  © 2014, O’Reilly Media, Inc.
  (707) 827-7019
  (800) 889-8969
  All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.