Errata

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.

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 27
BubblingHolder.mxml : line 11

click="handleClick()"

this is not necessary.

Anonymous  Oct 20, 2008 
Printed Page 129
mxml code line 23 (or thereabouts)

Recipe 4.13 - Applying embedded fonts in designated text within the <mx:htmlText> tag does not work, ie:

<mx:htmlText>
<![CDATA[
Not Using the New Font.<font size="20" family="DIN">Using the new
font</font>
]]>
</mx:htmlText>

The text "Using the new font" does not apply the embedded font; instead uses system font.

Tested in Flex Builder 3. Also, tried replacing family="DIN" to face="DIN" but to no avail.

I should note that the font embedded just fine in the .embeddedFontStyle style (line 8).

Anonymous  Jul 09, 2008 
Printed Page 243
Example code, code line 7

the line

public var mic:Microphone;

gives a compilation error: Error: constructor functions must be instance methods.

I don't yet know how to correct this so if the authors know, would appreciate a line.

Cheers!
Veeru

Anonymous  Jul 31, 2008 
Printed Page 310
public function initialize():void

In this function

line 46 _downloadBar.x = ( _stageWidth / 2 ) - 20;

TypeError: Error #1009: Cannot access a property or method of a null object reference.

Anonymous  Oct 06, 2008 
Printed Page 459
Code sample callService()

Printed (May 2008):
private function callService():void {
requestedId = input.text as Number;
service.Send()
}

should be
private function callService():void {
requestedId = input.text as Number;
service.Send();
}

Anonymous  Aug 17, 2008 
Printed Page 459
entire example

I don't know what the solution is, but the problem is that the code simply does not seem to work (as far as the php receiving information from the Flex program). First I typed it out (both the mxml and the php); after realizing that would not work, not matter how many ways I tweaked it, I downloaded the online example.

First, the online example doesn't work out of the box because there is a space in the first line of the mxml code: "<mx: Application" and should be "<mx:Application".

Secondly, the php server (I've tried on two separate servers) does not recognize the variable being sent to it. In the case of this book's example, the author is sending "<id></id>" and the server is assigning the contents to "$id_number". I've tried GET, POST, REQUEST, and none of them seem to pick up the value sent over the http connection. I know that I have a connection to the server as I am able to grab the hardcoded values echoed from the php. Here is the php echo:
echo('<id>'.$id_number.'</id><name>Todd Anderson</name><age>30</age>')
All I get from that is the name and age, but not the id (once again, I get the name and age values regardless of which php server I try it on).

Summary of the issue: the php server seemingly cannot understand the GET/POST value send by Flex.

About me: while my expertise in Flex 3 is limited, I am not completely new to the subject. I'd love to get this code working... any ideas?

Anonymous  May 07, 2009