Errata

Learning Flex 4

Errata for Learning Flex 4

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.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page 158
in sidebar titled "Style Smarts: 1st line of example code

The color is written as "0xFFF00" when it should read "0xFFFF00" (missing one 'F' in the color code)

Torrey Nommesen  Aug 25, 2011 
216
In the code sample of Example 11-10

The code sample failed to close the ArrayCollection tag.

Anonymous  Mar 28, 2011 
235
Screenshot of Figure 11-14

When the code is run, the resulting display in the lower List is [object Object] - and not the text that was displayed whilst dragging

I have tried this with the code provided at the author's URL (http://learningflex4.com/) as well. Same result.

Anonymous  Mar 28, 2011 
Printed Page 256
Syncing Two Lists heading

Syncing Two Lists, recommends a change event due to the possibility of recursion. The recommendation holds true, but recursion isn't an issue now that two-way bindings are in place in Flex 4. Recommendation should include two-way bindings.

Alaric Cole
 
Nov 23, 2010 
266
Source code of HTTPService

Earlier on the page we are shown how to sync the two Lists by updating the other List's selectedIndex on change.

We then set the SelectedIndex of the photoList programmatically (to 0), and while this is sufficient to start the load of the Image - it does not trigger a change event for the thumbList to receive it's update.

All this means is that IF the user were to switch to the Thumbnails tab before clicking anything, they would see that there is no selected item in the thumbList.

A simple, but inelegant fix is to also set the thumbList at the same time you set the photoList selectedIndex in the HTTPService result event.

<s:HTTPService id="photoService"
url="photos.xml"
resultFormat="e4x"
result="thumbList.selectedIndex=0; photoList.selectedIndex=0;" />

Anonymous  Mar 29, 2011 
Printed Page 321
fx:Declaration

<fx:Declarations> opened twice and closed once.

Also, <s:Fade id="fade" alphaFrom="0" alphaTo="1" duration="1000"/> should be in the declaration tag.

Torrey Nommesen  Aug 28, 2011