Flex 4 Cookbook

Errata for Flex 4 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
Other Digital Version
100
public function get selectedIndex():int

/////////////////// Error /////////////////// public function get selectedIndex():int { return selectedIndex = _pendingIndex == -1" "? 0" ": _pendingIndex } //////////////////// OK /////////////////// public function get selectedIndex():int { return _selectedIndex =_selectedIndex == -1 ? 0 : _selectedIndex }

Note from the Author or Editor:
remove quotation marks from the text as shown in the /// OK /// solution provided.

Anonymous  Jun 12, 2010 
PDF
Page 286
Lines 26 and 27 in the code.

Access of possibly undefined property displayObject through a reference with static type org.osmf.media:MediaPlayer. Access of possibly undefined property media through a reference with static type org.osmf.media:MediaPlayer.

Note from the Author or Editor:
The version of OSMF used in the book is 0.9 which builds properly. Since the release of the book 1.0 has been released and may have slightly different named variables, though 0.9 was slated as being api complete and locked down. OSMF 1.0 comes with plenty of samples including use of the CaptioningPlugin. It can be found at http://opensource.adobe.com/wiki/display/osmf/downloads

DirtyLogic  Jul 01, 2010 
PDF
Page 452
1st paragraph, code portion line number 2

The class Application no longer exist in Flex 4. This line creates fatal error : var parameters : Object = Application.application.parameters; It should be : var parameters : Object = FlexGlobals.topLevelApplication.parameters;` Please try to test your codes before update your books…

Anonymous  Jan 31, 2011