Errata


Print Print Icon

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



Version Location Description Submitted By
PDF Page 83
bottom of 83 page

Function "contains" must be static, but in example it's not static:
public function contains (string, character){
->
public static function contains (string, character){

Anonymous 
Printed Page 83
Example code at bottom of page

Second line of example code:
"public function contains (string, character) {"

should read:
"public static function contains (string, character) {"

Bob Pierce 
Printed Page 130
1st paragraph and instruction list

Where 'src' is stated as the directory for the .as files, it should be 'zoo'. Or the other way around. The .as directory has to be 'zoo' and the document class referenced in the main .fla file must be 'zoo.VirtualZoo'. The source directory and the document class prefix must match for the compiling to work.

David Lawter 
Printed Page 194
5th paragraph

The code snippet explaining Array.push() and returning length is incorrect.

var list:Array = [12,23,98];
trace(myList.push(28,36));

It uses "list" in the first line, then "myList" in the 2nd.

Eirik Hoem 
Printed Page 197
Second last line

The line "Invoke push( ), unshift( ),or splice( ) on the array" should be "Invoke pop( ), unshift( ),or splice( ) on the array".

This error also appears on the Safari Books Online version.

camden_kid 
Printed Page 789
after 4th paragraph (3rd code block with bolded text)

<FONT FACE="Times New Roman">
"In certain situations, this security limitation can be avoided using <I>import loading</I>, wherein <i>Main.swf</I> uses a <I>LoaderContext </I>object to import <I>Module.swf</I> into its security domain. The following code demonstrates:
</FONT>
<BR>
<FONT FACE="Courier New">
&nbsp;&nbsp;&nbsp;var loaderContext:LoaderContext = new LoaderContext();
&nbsp;&nbsp;&nbsp;<B>loaderContext.applicationDomain = ApplicationDomain.currentDomain;</B>
&nbsp;&nbsp;&nbsp;var loader:Loader = new Loader();
&nbsp;&nbsp;&nbsp;loader.load(new URLRequest("Module.swf"));</FONT>
<BR>
<FONT FACE="Times New Roman">
For complete information on import loading, see the section "Import Loading" in Chapter 19."
<P></P>
Upon noting that it didn't change anything other than the formatting of the previous code block, I was confused and refreshed myself as per suggestion of Chapter 19. There I noticed the definition of import loading on P. 447:
"Using the</FONT><FONT FACE="Courier New"> securityDomain</FONT><FONT FACE="Times New Roman"> to gain distributor permission to import a <I>.swf</I> file's classes into an application domain (as shown in the preceding code) is known as <I>import loading</I>."
<BR>
Thus, I think the code block should be rewritten as follows:
</FONT>
<BR>
<FONT FACE="Courier New">
&nbsp;&nbsp;&nbsp;var loaderContext:LoaderContext = new LoaderContext();
&nbsp;&nbsp;&nbsp;loaderContext.applicationDomain = ApplicationDomain.currentDomain;
&nbsp;&nbsp;&nbsp;<B>loaderContext.securityDomain &nbsp;&nbsp;&nbsp;= SecurityDomain.currentDomain;</B>
&nbsp;&nbsp;&nbsp;var loader:Loader = new Loader();
&nbsp;&nbsp;&nbsp;loader.load(new URLRequest("Module.swf"));</FONT>

Cassandra Boykin 
Printed Page 789
after 4th paragraph (3rd code block with bolded text)

Sorry about the HTML, here is a more readable version:
(if this doesn't support BB Code either, [b]bolded stuff[/b] is where it is bolded, and later represents where I suggest the bolding be placed.)

"In certain situations, this security limitation can be avoided using import loading, wherein Main.swf uses a LoaderContext object to import Module.swf into its security domain. The following code demonstrates:

var loaderContext:LoaderContext = new LoaderContext();
[b]loaderContext.applicationDomain = ApplicationDomain.currentDomain;[/b]
var loader:Loader = new Loader();
loader.load(new URLRequest("Module.swf"));

For complete information on import loading, see the section "Import Loading" in Chapter 19."

Upon noting that it didn't change anything other than the formatting of the previous code block, I was confused and refreshed myself as per suggestion of Chapter 19. There I noticed the definition of import loading on P. 447:
"Using the securityDomain to gain distributor permission to import a .swf file's classes into an application domain (as shown in the preceding code) is known as import loading."

Thus, I think the code block should be rewritten as follows:
var loaderContext:LoaderContext = new LoaderContext();
loaderContext.applicationDomain = ApplicationDomain.currentDomain;
[b]loaderContext.securityDomain = SecurityDomain.currentDomain;[/b]
var loader:Loader = new Loader();
loader.load(new URLRequest("Module.swf"));

Cassandra Boykin 


"This book is so good and so needed for Flash CS3 and Flex Builder - Adobe should consider including a half-price discount voucher on the book when people register their products."
--Jacques Surveyer, The Open Sourcery