Adobe Flex 4.5 Fundamentals: Training from the Source Errata (ISBN 0-321-77712-3)

Readers of this book are invited to join and participate in the Flex Training from the Source discussion group

This page contains a list of known issues, in addition to user reported issues that are still being investigated.

You can download the kindle or e-book lesson files here
Lesson 13
Page 318 Issue - Step 6 - DragManager and IUIComponent require import statements.
Solution - If not using code completion, manually add the following lines of code:
	import mx.core.IUIComponent;
	import mx.managers.DragManager;
								
Page 318 Issue - Step 9 - Says to check that the targetList_dragDropHandler event handler was created.
Solution - The event handler is actually named targetGrid_dragDropHandler.
Page 319 Issue - Step 12 - Says to place a breakpoint at the closing brace of targetList_dragDropHandler(event:DragDropEvent).
Solution - The function is actually targetGrid_dragDropHandler(event:DragEvent).
Page 327 Issue - Step 4 - Says to select Generate DragDrop Handler to automatically create the event handler.
Solution - The correct selection to create the event handler will be Generate MouseDown Handler.
Lesson 15
Page 372 Issue - Step 14 - Says to move the code that dispatches the proceed event inside the else block.
Solution - Should say to move the code inside the if block.
Lesson 16
Page 393 Issue - Above Step 1 - The line "This code will apply the color style to any control with an id of myLabel." does not reference the preceding code.
Solution - Ignore this sentence, as it actually refers to the code in the Using an ID Selector section on the previous page.
Lesson 18
Page 447 Issue - Step 10 - The event.dragSource.dataForFormat() method is incorrectly being passed "cartFormat".
Solution - The code should follow the format it was first written in, which appeared in Step 8. Specifically, event.dragSource.dataForFormat() should be passed "singleProduct". The code should be as follows:
private function handleDragDrop( event:DragEvent ):void {
	var product:Product = event.dragSource.dataForFormat( "singleProduct" ) as Product;
	var prodEvent:ProductEvent = new ProductEvent( "addProduct", product );
	dispatchEvent( prodEvent );
}
								
Book Image
Please email possible new errata to answers AT digitalprimates dot net