ActionScript for Flash MX: The Definitive Guide, 2nd Edition by Colin Moock The following corrections were made to the 10/03 reprint: Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem page 37 IN PRINT: The last sentence of the first paragraph NOW READS: "You can even create a restart button that is available throughout the quiz by making a button instance named restart_btn (placed on its own layer, on frame 1 of the main timeline), and adding the following code to frame 1 of the scripts layer:" page 82 IN PRINT: Under "Infinity and Negative Infinity: Infinity and -Infinity", in the second last sentence; "an underflow condition" NOW READS: "a negative overflow condition". {115} IN PRINT: "The Assignment Operator" section, code sample after second paragraph, last line of code; "square.area = square.width * 2;" NOW READS: "square.area = square.width * square.width" {152} first code example; line 3: trace("pi is: " + PI); // Displays: 3.1459... (PI is property of Math) NOW READS: trace("pi is: " + PI); // Displays: 3.14159... (PI is property of Math) page 164 IN PRINT: The third line of the last code sample on the page: trace("x is less than 5"); NOW READS: trace("i is less than 5"); page 165 IN PRINT: The third line of the first code sample on the page: trace("x is less than 5"); NOW READS: trace("i is less than 5"); page 173 IN PRINT: In line 5 of example 8-3: if (form[prop].text == "") { NOW READS: if (form_mc[prop].text == "") { page 193 The last code block on the page: NOW READS: _global.functionName = function () { statements }; page 210 IN PRINT: The last line of the second code sample: initFormFields(editFields, highlightField); NOW READS: initFormFields(editFields, handleFieldFocus); page 225 IN PRINT: The last sentence of the second prose paragraph under "Listener Events": "Because State.onResize() is a listener event..." NOW READS: "Because Stage.onResize() is a listener event..." page 227 IN PRINT: In the first paragraph after the warning note, in the second sentence: "allowing for a entire movie's layout" NOW READS: "allowing for an entire movie's layout" page 244 IN PRINT: Line 20 of Example 10-4: // Turn the clip bright red when the mouse is off of it NOW READS: // Turn the clip dark red when the mouse is off of it page 259 IN PRINT: In line 16 of Example 11-3: months.splice(5, 2, "june"); NOW READS: months.splice(5, 2, "June"); page 284 IN PRINT: In the first paragraph following the warning note, in the list of properties between em dashes: "yPostion" NOW READS: "yPosition" page 288 IN PRINT: The number in last line of the only code sample on the page: 78.5398163397448. NOW READS: 785398.163397448 page 302 The third line of the third code sample on the page NOW READS: importantDates.gwenBirthday = "January 17"; not: var importantDates.gwenBirthday = "January 17"; page 333 IN PRINT: In the second sentence of the tip note: "...or myClip in the movie clip hierarchy..." NOW READS: "...or theClip in the movie clip hierarchy..." page 387 IN PRINT: In the code example following the heading "MovieClip Sub-Subclasses": Line 3 of the code, which reads: // ... init code ... HAS BEEN MOVED after line 5, and NOW READS: super() // ... init code ... page 548 IN PRINT: Under -Infinity's "Description" heading, in the last sentence: "an underflow condition" NOW READS: "a negative overflow condition". page 593 IN PRINT: Under "See Also"; "Security.settings.allowDomain()" NOW READS: "System.security.allowDomain()". page 631 IN PRINT: Under "Description", in the third code block on the page: tBall_mc._xscale = 200; NOW READS: tBall._xscale = 200; page 671 IN PRINT: The synopsis for "loadMovie()": "Load an external .swf file into the Player." NOW READS: "Load an external .swf or .jpg file into the Player." page 694 IN PRINT: Under MovieClip._rotation's Example heading, the second line of the code sample: box_mc.onEnterFrame = function { NOW READS: box_mc.onEnterFrame = function () { page 704 IN PRINT: Under the first See Also on the page: "System.Security.allowDomain()" NOW READS: "System.security.allowDomain()" page 710 IN PRINT: Under MovieClip._ymouse's Example heading, the first line of the code sample: onEnterFrame = function () { NOW READS: this.onEnterFrame = function () { page 708 The last sentence of the Description heading for MovieClip._xmouse: NOW READS: "To obtain a consistent _xmouse coordinate that is always measured relative to the Stage of the base movie in the Player, use _level0._xmouse." page 710 The last sentence of the Description heading for MovieClip._ymouse: NOW READS: "To obtain a consistent _ymouse coordinate that is always measured relative to the Stage of the base movie in the Player, use _level0._ymouse." page 725 IN PRINT: Under "Usage" for "Object.__proto__ Property". The first 5 words: "Overwriting an object's constructor property" NOW READS: "Overwriting an object's __proto__ property" page 804 IN PRINT: in the warning note for #strict: "...Flash Player 6.0.61.0..." NOW READS: "...Flash Player 6.0.65.0..." page 924 IN PRINT: The synopsis for XML.contentType: xmlDoc.contentTypeAccess NOW READS: xmlDoc.contentType page 969 The entry for "Macromedia Flash file format": NOW READS: "Here you can obtain the SWF specification, which 'documents the Macromedia Flash file format (SWF), and how to write Macromedia Flash 6 (SWF) files.'." page 980 IN PRINT: In the heading "Updates to Flash Player 6, Build 61": NOW READS: "Build 65" page 980 IN PRINT: The first sentence that follows the "Updates" heading: "...Macromedia released Build 61 of Flash Player 6 (Flash Player 6.0.61.0)." NOW READS: "...Macromedia released Build 65 of Flash Player 6 (Flash Player 6.0.65.0)." page 1016 IN PRINT: Under the term "HEIGHT", the end of the sentence: "of the HTML page width in the browser." NOW READS: "of the HTML page height in the browser."