Essential ActionScript 3.0 by Colin Moock This errata page lists errors corrected in the most recent printing. If you have technical questions or error reports, you can send them to booktech@oreilly.com. Please specify the printing date of your copy. This page was updated August 29, 2007. 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-number?: reader question or request for clarification ## > {59} fourth code snippet > The comment should be changed from: > > // This code executes if one of either xPosition is between > // 0 and 100, inclusive > > to: > > // This code executes if xPosition is between > // 0 and 100, inclusive > > ## > > {60} Fourth fixed-width code block > The code should be changed from: > > (month + day)>1 > > to: > > (month + day)==1 > > ## > > {83} last code block on the page > the second line of code should be changed from: > public function contains (string, character) { > > to: > public static function contains (string, character) { > > ## > > (173) End of "try/catch/finally" Usage description > Bad wrapping. Change the code from: > > } finally { > // Code that always > executes > } > > to: > > } finally { > // Code that always > // executes > } > > ## > > (173) End of "super" Usage description > Bad wrapping. Change the code from: > > super.method(arg1, arg2, .. > .argn) > > to: > super.method(arg1, arg2, > ...argn) > ## p. 297 "Via the scope chain, code in a classs" "classs" should be "class" ## p. 345 3rd prose paragraph. change "secureMethod()" to "secretMethod()" ## p. 345 4th code block. change "secureMethod()" to "secretMethod()" ## p. 370 first prose paragraph. change this text: "XML comments take the for:" to: "XML comments take the form:" ## p. 393 Code in the section "Adding a new child before a specific existing child" should be revised in two spots. change this code: parent.existingChild[n] = parent.existingChild[n] + to: parent.existingChild[n] = + parent.existingChild[n] and change this code: parent.*[childIndex] = parent.*[childIndex] + to: parent.*[childIndex] = + parent.*[childIndex] ## p. 404 first sentence on the page. change this text: "We've now finish studying" to: "We've now finished studying" ## p. 487 last line of code on the page should be changed from: someContainer.addChild(newChild, depth) to: someContainer.addChildAt(newChild, depth) ## p. 511 third prose paragraph. change this text: "Now that were familiar" to "Now that we're familiar" ## p. 521 first code block. change this code: addEventListener(GameManager.HIT, hitListener, false, int.MAX_VALUE); to: addEventListener(GameManager.SHIP_HIT, hitListener, false, int.MAX_VALUE); ## p. 535 Notes column entry for MouseEvent.DOUBLE_CLICK row. Second bullet. Change this text: M.ouseEvent.DOUBLE_CLICK to: MouseEvent.DOUBLE_CLICK ## p. 559 first code block. change this code: + e.key code; to: + e.keyCode; ## ## > > {606} Code listing 23-4, part 2, continued; > change the code from: > > // on the display list > stage.addEventListener(Event.RENDER, renderListener); > > to: > // on the display list > stage.removeEventListener(Event.RENDER, renderListener); > > ## > {608} Code listing 23-5, continued; > near the bottom of the page, change the code from: > > // on the display list > stage.addEventListener(Event.RENDER, renderListener); > > to: > // on the display list > stage.removeEventListener(Event.RENDER, renderListener); > p. 631 first code block. change this code: canvas.graphics.lineStyle(1, 0x00FF00, 50) to: canvas.graphics.lineStyle(2, 0x00FF00, 50) ## p. 682 4th prose paragraph. change this text: and the parameters to draw() are as follows to: and the parameters to copyPixels() are as follows ## p. 684 example 26-11, line 9. change this text: The borter loader to: The border loader ## p. 688 7th prose paragraph. change this text: and the parameters to draw() are as follows to: and the parameters to applyFilter() are as follows ## p. 751 3rd line of code from the bottom. change this code: var fonts:Array = Font.enumerateFonts(true); to: var fonts:Array = Font.enumerateFonts(); ## p.754 Figure 27-13 change the text: Vecto-Renderer to: Vector-Renderer ## p.754 Figure 27-13 the alphabets in the figure should not have been re-created by the tools Department. they should be taken directly from my figure, because they are screenshots showing the difference in rendering quality within Flash Player. my original figure is attached as file eas33_ch27_13.gif. ## chapter 27 the text (Hello world...) in the figures 27-1 through 27-9 should be reset in the font Times New Roman. ## p. 704 figure 27-9 the width of the containing grey box should be expanded to portray 100 pixels. please see my original source file for the figure. ## p. 789 paragraph immediately preceding example 28-9. change this text: added to Module.swf's external-library-path. to: added to Main.swf's external-library-path.