Errata

Getting Started with Flex 3

Errata for Getting Started with Flex 3

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 p.63

The examples in the book do not match the examples in the .zip folder. When the actual examples ARE posted, could you please organize them as they are labelled in the book? ("Example 4-21," "Example 6-10," "Example 8-1," etc.) Thank you.

Anonymous  Mar 04, 2009 
1.2
1st paragraph - last sentence

Under Section 1.2 Having Some Image Fun - first paragraph, last sentence

The sentence reads; "From there, take any image from your computer, rename it to myimage.jpg, and drop it into the src folder of your new project."

However, the sample code embeds mypicture.jpg the names must match to make this sample code work. Change either the sentence to match the code or change the code to match the sentence. Since the other code samples rely on mypicture.jpg it would probably be easier to change the sentence.

Anonymous  Jun 28, 2008 
1.2
First line of Chapter 1.2; Having Some Image Fun

The first line indicates that the image should be named "myimage.jpg", but within the code for both examples the image name changes to "mypicture.jpg"

Anonymous  Jul 15, 2008 
PDF Page 2
Last paragraph

There is no fun in "Having Some Image Fun." As already noted, the file name is wrong, but I don't know if that is a problem. For all I know, mypicture.jpg is a variable name (the image loaded despite the name variance).

I started with a large picture because the instructions specified "any image." It turns out I can't see what is happening because the file does not resize the picture, nor does it support scrolling.

I removed the larger image and inserted a small image (about 150x200). That didn't seem to make any difference. The result is still a very large image on a much smaller display. I tried a new project. Same result. I tried renaming the image to match the file: no change.

I'm sure others figured this out, but really, you'll need to change the name of this exercise (it wasn't fun for me).

Tomas

Thomas Garrod  Mar 27, 2009 
Printed Page 3
Under Section 1.2 Having Some Image Fun - first paragraph, last sentence

The sentence reads; "From there, take any image from your computer, rename it to myimage.jpg, and drop it into the src folder of your new project."

However, the sample code embeds mypicture.jpg the names must match to make this sample code work. Change either the sentence to match the code or change the code to match the sentence. Since the other code samples rely on mypicture.jpg it would probably be easier to change the sentence.

Anonymous   
PDF Page 3-5
Examples 1-3

When pasted into a Flex Developer source window, the trailing double quotes generate errors until they are replaced.

MahlerIsBach  Dec 16, 2008 
Printed Page 3
example 1-1

The code looks for an image called: mypicture.jpg. This is wrong. It should be myimage.jpg.
Wrong is:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Image source="@Embed('mypicture.jpg')" height="100" top="30" left="30" rotation="-10">
<mx:filters>
<mx:DropShadowFilter />
</mx:filters>
</mx:Image>
</mx:Application>

Corrected:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Image source="@Embed('myimage.jpg')" height="100" top="30" left="30" rotation="-10">
<mx:filters>
<mx:DropShadowFilter />
</mx:filters>
</mx:Image>
</mx:Application>

Jeroen Minnee  Sep 18, 2009 
PDF Page 3
whole

Even after changing the filename to mypicture.jpg I get an error message :
Initializer for 'rotation': cannot parse value of type Number from text '-10'.

I must be doing something wrong. But what? Nobody else got this?
Thanks for any help.

HIran de Silva  Mar 21, 2010 
PDF Page 4
Example 1-2

In the line
<mx:Image id="myimg" source="@Embed('mypicture.jpg')"
either 'id="myimg"' or the entire line should be bold since, without adding this change from the previous example, errors will ensue at runtime.

MahlerIsBach  Dec 16, 2008 
Printed Page 4
example 1-2

The code looks for an image called mypicture.jpg. This is wrong. It should be myimage.jpg

Wrong is:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:HBox top="10" left="10">
<mx:HSlider minimum="-30" maximum="30" value="-10" toolTip="Rotation"
change="myimg.rotation=event.currentTarget.value" liveDragging="true" />
<mx:HSlider minimum="100" maximum="300" value="100" toolTip="Size"
change="myimg.height=event.currentTarget.value" liveDragging="true" />
<mx:CheckBox label="Visible" change="myimg.visible=event.currentTarget.selected"
selected="true"/>
</mx:HBox>
<mx:Image id="myimg" source="@Embed('mypicture.jpg')" height="100" top="60" left="30" rotation="-10">
<mx:filters>
<mx:DropShadowFilter />
</mx:filters>
</mx:Image>
</mx:Application>

Corrected:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:HBox top="10" left="10">
<mx:HSlider minimum="-30" maximum="30" value="-10" toolTip="Rotation"
change="myimg.rotation=event.currentTarget.value" liveDragging="true" />
<mx:HSlider minimum="100" maximum="300" value="100" toolTip="Size"
change="myimg.height=event.currentTarget.value" liveDragging="true" />
<mx:CheckBox label="Visible" change="myimg.visible=event.currentTarget.selected"
selected="true"/>
</mx:HBox>
<mx:Image id="myimg" source="@Embed('myimage.jpg')" height="100" top="60" left="30" rotation="-10">
<mx:filters>
<mx:DropShadowFilter />
</mx:filters>
</mx:Image>
</mx:Application>

Jeroen Minnee  Sep 18, 2009 
4.4
Figure 4.6

Where is the button labeled "next >"? It's in the code but not the figure showing the result of running the code.

kajaco2  Apr 09, 2009 
Printed Page 5
example 1-3

The code is looking for an image called: mypicture.jpg. It should be looking for an image named myimage.jpg.

Wrong code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:HBox top="10" left="10">
<mx:HSlider minimum="-30" maximum="30" value="-10" toolTip="Rotation"
change="myimg.rotation=event.currentTarget.value" liveDragging="true" />
<mx:HSlider minimum="100" maximum="300" value="100" toolTip="Size"
change="myimg.height=event.currentTarget.value" liveDragging="true" />
<mx:CheckBox label="Visible" change="myimg.visible=event.currentTarget.selected"
selected="true"/>
</mx:HBox>
<mx:Image id="myimg" source="@Embed('mypicture.jpg')" height="100" top="60" left="30" rotation="-10">
<mx:filters>
<mx:DropShadowFilter />
</mx:filters>
<mx:showEffect>
<mx:Fade alphaFrom="0" alphaTo="1" duration="1000" />
</mx:showEffect>
<mx:hideEffect>
<mx:Fade alphaFrom="1" alphaTo="0" duration="1000" />
</mx:hideEffect>
</mx:Image>
</mx:Application>

Corrected:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:HBox top="10" left="10">
<mx:HSlider minimum="-30" maximum="30" value="-10" toolTip="Rotation"
change="myimg.rotation=event.currentTarget.value" liveDragging="true" />
<mx:HSlider minimum="100" maximum="300" value="100" toolTip="Size"
change="myimg.height=event.currentTarget.value" liveDragging="true" />
<mx:CheckBox label="Visible" change="myimg.visible=event.currentTarget.selected"
selected="true"/>
</mx:HBox>
<mx:Image id="myimg" source="@Embed('myimage.jpg')" height="100" top="60" left="30" rotation="-10">
<mx:filters>
<mx:DropShadowFilter />
</mx:filters>
<mx:showEffect>
<mx:Fade alphaFrom="0" alphaTo="1" duration="1000" />
</mx:showEffect>
<mx:hideEffect>
<mx:Fade alphaFrom="1" alphaTo="0" duration="1000" />
</mx:hideEffect>
</mx:Image>
</mx:Application>

Jeroen Minnee  Sep 18, 2009 
PDF Page 7
Two sentences before "E-Commerce" heading

The link to "http://flex.org" is listed twice in the same sentence.

MahlerIsBach  Dec 16, 2008 
PDF Page 8
Figure 2-1 and others

The image quality of graphic images is so poor that text cannot be read.

MahlerIsBach  Dec 16, 2008 
PDF Page 17
Figure 2-12

Figure 2-12 does not show the Pownce chat client. I cannot tell what exactly is shown here. (MSNA Viewer?)

Jeroen Minnee  Sep 18, 2009 
PDF Page 18
Figure 2-13

Figure 2-13 shows Pownce instead of the EBay Desktop application

Anonymous  Aug 22, 2008 
PDF Page 18
Figure 2-13

Though the legend states that Figure 2-13 is displaying "The eBay Desktop application", the only legible text in the image indicates that it is an image from "Pownce".

MahlerIsBach  Dec 16, 2008 
PDF Page 18
Figure 2-13

The Figure does not show the Ebay Desktop Application. The Pownce chat client is shown instead.

Jeroen Minnee  Sep 18, 2009 
Printed Page 23
step #5

The TextInput component should be have the id filled in: searchTerms.
Without this id the code will not build because in the function requestPhotos() the param.tags will look for this id.

Jeroen Minnee  Sep 20, 2009 
PDF Page 25
last paragraph




>>1. Using the Outline view, locate the Button component in
>> the HBox component. Clicking the Button component in
>> the Outline view locates the Button component code in
>> Source mode. This is shown in Figure 3-6.

Before the step mentioned above we need to add the following code within <mx:Script> block otherwise the project will not compile and Outline view will not be able to autodirect to the corresponding source code line on selecting the Button component

<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;

[Bindable]
private var photoFeed:ArrayCollection;

private function photoHandler(event:ResultEvent):void{

}
]]>
</mx:Script>


tarun_telang  Aug 18, 2009 
Printed Page 29
Example 3-11

Book says to create a TileList tag with width and height at 100%. Like so...

<mx:TileList width="100%" height="100%" dataProvider="{photoFeed}">
</mx:TileList>

This causes the TileList to take up the entire window, giving the user a white screen and hiding any other content.

My solution was to set the Y attribute to 75 enabling the user to see the search field and button.

<mx:TileList width="100%" height="100%" dataProvider="{photoFeed}" y="75">
</mx:TileList>

Anonymous  Feb 06, 2009 
Printed Page 29
NA

Please disregard my last post. I forgot to remove the layout property from the Application tag causing the app to use absolute positioning.

Sorry

John O'Donnell  Feb 06, 2009 
PDF Page 30
Example 3-14

The trailing bracket is missing for '<mx:Component>'.

MahlerIsBach  Dec 16, 2008 
PDF Page 30
Example 3-14. Adding the Component

Original Text:
<mx:TileList width="100%" height="100%"
dataProvider="{photoFeed}">
<mx:itemRenderer>
<mx:Component
</mx:Component>
</mx:itemRenderer>
</mx:TileList>

Corrected Text:

<mx:TileList width="100%" height="100%"
dataProvider="{photoFeed}">
<mx:itemRenderer>
<mx:Component
</mx:Component>
</mx:itemRenderer>
</mx:TileList>

tarun_telang  Aug 18, 2009 
Printed Page 32
Flickr-application

After following-up every described detail in the process of coding of the Flickr-application, I found out that a very necessary line is forgotten. On page 32 one has to create a new thumbnail-MXML-component, but nowhere is explained that you have to add *source="{data.thumbnail.url}"*, you have to find out by comparing your code with the one which is showed thereafter. And a few lines before that, also on page 32, you have to add *horizontalScrollPolicy="off" *and* verticalScrollPolicy="off"*, but in the full code showed on the next page (34): nothing! And moreover it doesn't make a difference, with or without .

Anonymous   
Printed Page 32
Flickr-application

after following-up every described detail in the process of coding
of the Flickr-application, I found out that a very necessary line is forgotten. On page 32 one has to create a new thumbnail-MXML-component.
But nowhere is explained that you have to add *source="{data.thumbnail.url}"*, you have to find out by comparing your code with the one which is showed thereafter.
And a few lines before that, also on page 32, you have to add
*horizontalScrollPolicy="off" *and* verticalScrollPolicy="off"*, but in the full code showed on the next page (34): nothing!
And moreover it doesn't make a difference, with or without .
For a beginner it' surely is not as easy as is stated on the end of this chapter :-(
.

Anonymous  Jul 25, 2008 
PDF Page 33
Example 3-21. FlickrRIA.mxml

Example does not work correctly and is giving the following error message on running the flex application.

[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://api.flickr.com/services/feeds /photos_public.gne?tags=adobe&format=rss%5F200%5Fenc"]. URL: http://api.flickr.com/services/feeds /photos_public.gne"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:220]
at mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
at mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
at DirectHTTPMessageResponder/errorHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:362]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
---

The HTTP Response obtained from the call is as below:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Flickr API: Page not found</title>
<link href="http://l.yimg.com/g/css/c_flickr.css.v76004.14" rel="stylesheet" type="text/css" />
</head>
<body>

<h1>Flickr API: Page not found</h1>

<p>If you were looking for a page on flickr.com, <a href="http://www.flickr.com/sercies/feeds/photos_public.gne?tags=adobe&amp;format=rss%5F200%5Fenc">try this link</a>.</p>

<p>If you were looking for API endpoints, try:</p>

<ul>
<li> http://api.flickr.com/services/rest/ </li>
<li> http://api.flickr.com/services/soap/ </li>
<li> http://api.flickr.com/services/xmlrpc/ </li>
<li> http://api.flickr.com/services/upload/ </li>
<li> http://api.flickr.com/services/replace/ </li>
</ul>

<p>If you were looking for API documentation, <a href="http://www.flickr.com/services/api/">please see here</a>

<p>If you were looking for feed documentation, <a href="http://www.flickr.com/services/feeds/">please see here</a>

<!-- ############################################################################################################## -->
<!-- ############################################################################################################## -->
<!-- ############################################################################################################## -->
<!-- ############################################################################################################## -->
<!-- ############################################################################################################## -->
<!-- ############################################################################################################## -->
<!-- ############################################################################################################## -->
<!-- ############################################################################################################## -->
<!-- ############################################################################################################## -->
<!-- ############################################################################################################## -->

</body>
</html>

tarun_telang  Aug 18, 2009 
PDF Page 70
2nd Sentence

On Page 70 the example of the server code lists the file as

Example 5-2. Formtest.php

however, the actual code in the example in download and code in book Example 5-1 has the url as "http://localhost/formtest.php"

The file label in the example should be changed to "formtest.php"
This file is also missing from the example code.

Kristina Tripp  Sep 24, 2009