Learning ActionScript 3.0 by Rich Shupe, Zevan Rosser The unconfirmed error reports are from readers. They have not yet been approved or disproved by the author or editor and represent solely the opinion of the reader. 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 This page was updated July 29, 2008. UNCONFIRMED errors and comments from readers: [preface] para 1, line 2; website with examples is not working [xv] first paragraph; the companion website still isn't up. just a message that says it will be up on the 6th of Jan. (xviii) Line 9; Interativity should be Interactivity (33) figure 3-1 , second example; box.scaleX=50; box.scaleY=50; should it reflect the new syntax format? box.scaleX=.5; box.scaleY=.5; {45}last sentence; "The hand advances 5 degrees of rotation" I think it should be "6 degrees" [55] top; code in section that reads: function showChildren(dispObj:DisplayObject):void { for (var i:int = 0; i < dispObj.numChildren; i++) { var obj:DisplayObject = dispObj.getChildAt(i); if(obj is DisplayObjectContainer) { trace(obj.name, obj); showChildren(obj); } else { trace(obj); } } } showChildren(stage); This code does not work in Flash CS3 and causes Compiler Error (64) 4.3. Managing Object Names, Positions, and Data Types; In subsection 4.3.1. Finding Children by Position and by Name, a couple of the examples include the variable name do. For instance: var do:DisplayObject = getChildAt(0); do is a reserved ActionScript keyword, and if you try to execute this example, you'll get the following error: "Syntax error, expecting identifer before do" Use another variable name instead, such as do1 or do2. [69] Second block of code example; Missing code below that should be between line 10 and 11 which makes most of the references to line numbers on that page incorrect. btn.name = "button" + i (69)5th paragraph; paragraph reads "...when event is received (line3), and button is added to the navBar parent (line 4)." line 3 is an empty line. line 4 is a variable statement probable solution "...when event is received (line 11), and button is added to the naveBar (line 12)." note - line numbers will change when you incorporate previously posted errata concerning missing "btn.nam=..." statement (7.3.2) line 10 of the code (7.3.2. Friction); This applies to online version: in line 10 of the code you declare variable (frCooef): var frCooef:Number = .95; but refer to it as (frCoeff - note spelling difference) : xVel *= frCoeff; yVel *= frCoeff; one had two o's and one 'f', the other has two f's and one 'o' (7.5) second paragraph, end of first line; ...reproduce complex animfations created spelling mistake of animations {127} under the code listed for the "Friction" project; On page 127 (Ch. 7) under the code listed for the "Friction" project, there are two typos in the code. In lines 10 and 14-15 the handle being used for friction coefficient switches between the two sets of code. In line 10 it is listed as "frCooef" and in lines 14-15 it is listed as "frCoeff" [9.1] 9.1. Bitmap Caching (error only on Safari); (NOTE: I'm using O'Reilly's Safari to read this book, so I don't know the exact page number.) In Chapter 9, section 9.1 Bitmap Caching, the setMask property in the example below doesn't compile in Flash CS3 (I get a "this property doesn't exist" compile-time error): mask.cacheAsBitmap = true; maskee.cacheAsBitmap = true; maskee.setMask(mask); The correct way to set a mask is: maskee.mask = mask; Where .mask is the correct property.