Flex 3 Cookbook

Errata for Flex 3 Cookbook

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted Date Corrected
Printed
Page XVII
Page XVII, line 8, 1st word, "vex"

Just a small spelling error detected for your benefit.. Flex 3 CookBook May 2008 First Edition. Page XVII, line 8, 1st word, "vex" I think you probably meant "flex".

Note from the Author or Editor:
Flex 3 CookBook May 2008 First Edition. Page XVII, line 8, 1st word, "vex" SHould be "Flex".

Anonymous  Aug 11, 2008 
Other Digital Version
7.9
SevenSixRenderer class

Sorry my bad on the previous comment regarding creating a custom Item Renderer chapter 7.9 Flex 3 Cookbook. It should actually be changed from this: var _imgClass:Class = UIComponent(owner).document[ listData.label]; to this: _imgClass = UIComponent(owner).document[ listData.label]; as the _imgClass variable has already been declared at the top of the class. Gomen yo :) cheers erick On Sun, Jul 13, 2008 at 1:01 PM, supa bok <supabok@gmail.com> wrote: > {?}Digital Version = .chm file > Chapter 7.9 > > It seems that this override within the SevenSixRenderer class(custom > ItemRenderer) throws compile time errors: > override protected function commitProperties():void > { > super.commitProperties(); > // sometimes the listdata of the renderer can be null, in which case > we certainly don't > // want to throw runtime errors > > if (listData) > { > // remove the old child if we have one > if (img) > { > removeChild(img); > } > > if(_imgClass == null) > { > *var _imgClass:Class = UIComponent(owner).document[ > listData.label]; * > } > > *img = new _imgClass();* > addChild(img); > > } > } > > > Specifically this line: > var _imgClass:Class = UIComponent(owner).document[ listData.label]; > > To get this to work I've changed the method as such: > override protected function commitProperties():void > { > super.commitProperties(); > > *var _imgClass:Class;* > > // sometimes the listdata of the renderer can be null, in which case > we certainly don't > // want to throw runtime errors > > if (listData) > { > // remove the old child if we have one > if (img) > { > removeChild(img); > } > > if(_imgClass == null) > { > *_imgClass *= UIComponent(owner).document[ listData.label]; > > } > > img = new _imgClass(); > addChild(img); > > } > } > > cheers on an excellent book!!! > I just bought it online in Japan :) >

Anonymous  Jul 15, 2008 
Safari Books Online
11.13.3
towards the bottom

Chapter 11.13.3 error In the Discussion section of this chapter, after the : - AddChild - RemoveChild - SetEventHandler - SetProperty - SetStyle there is this reference/tip: (For more information on the IOverride interface, see Recipe 11.15.) That probably should be ...see Recipe 11.14.) since there is no 11.15!

Note from the Author or Editor:
change to: (For more information on the IOverride interface, see Recipe 11.14.)

Anonymous  Jul 23, 2008 
Safari Books Online
14.9.3
Full code view of the Properties class

Having gone through this solution, I found that there was an issue with the wrapping of the EventDispatcher. When binding an array collection of my dynamic objects to a datagrid, I found that when a sort was automatically applied to the datagrid after a binding update, an error was often thrown by Sort.as. mx.collections.Sort.findItem() was being passed in the parameter

Note from the Author or Editor:
should be changed to: public function Properties() { _evtDispatcher = new EventDispatcher(this); }

Anonymous  Sep 23, 2008 
Printed
Page 27
BubblingHolder.mxml : line 3

creationComplete=

Anonymous  Oct 20, 2008 
Printed
Page 33
First sentence under the Discussion heading

The first sentence starts: "To define an optional method or multiple optional methods for a method," This obviously should be: "To define an optional parameter or multiple optional parameters for a method,"

Note from the Author or Editor:
Page number of error: 33 change "To define an optional method or multiple optional methods for a method," to "To define an optional parameter or multiple optional parameters for a method,"

Anonymous  Jun 22, 2008 
Printed
Page 157
157

In the Flex 3 Cookbook , Printing May 2008 First Edition, I found an error: [157] var menu:ContentMenu=new ContextMenu(); I think it must be var menu:ContextMenu=new ContextMenu();

Anonymous  Sep 19, 2008 
Printed
Page 211
Code listing

The line public class CenteredCheckBoxHeaderRenderer extends CenteredCheckBox should read public class CenteredCheckBoxHeaderRenderer extends CheckBox I don't know how this got in there.

Joshua Noble
O'Reilly Author 
Jul 12, 2008 
Printed
Page 260
PHP code, lines 1 and 2

the first two lines of the PHP code are incorrect. The $_FILES variable passed into PHP is called "Filedata" by default and in the example Flex code. So, INCORRECT $file_temp=$_FILES['file']['tmp_name']; $file_name=$_FILES['file']['name']; should be replaced with CORRECT $file_temp=$_FILES['Filedata']['tmp_name']; $file_name=$_FILES['Filedata']['name']; This has been tested and works.

Note from the Author or Editor:
$file_temp=$_FILES['Filedata']['tmp_name']; $file_name=$_FILES['Filedata']['name'];

Anonymous  Oct 16, 2008 
Printed
Page 338
3rd paragraph

In section 11.3 (re: AddChild- and RemoveChild actions in transitions), the 3rd paragraph currently reads:

Note from the Author or Editor:
Should read: 'Note that the RemoveChildAction tag controls when the child is removed, but it does not remove the child. The RemoveChildAction mechanism doesn't call its remove method automatically. To remove the child...'

Anonymous  May 11, 2009 
Printed
Page 388
Second paragraph under the Discussion heading

IHierarchicalData is misspelled IHierarchicaData

Robert Ward  Mar 19, 2009 
Printed
Page 390
Method .getParent()

In the above method, the expression: if(obj.parentTask == node.parentTask) should be if (obj.parentTask == node.id)

Note from the Author or Editor:
should read: if (obj.parentTask == node.id)

Anonymous  Nov 09, 2008 
Printed
Page 459
bottom

At the bottom of the page is the following PHP code snippet: <?php $id_number = $_GET["id"]; This should read: <?php $id_number = $_POST["id"];

Anonymous  Jun 19, 2008