ActionScript VQS Errata – Page 140 Typo – Code 10.3 Correction

Thanks to Jason of http://www.jasonhildredesign.com for bringing a code error from Code 10.3 on Page 140 to my attention.

For the textFocus event handler function, the event object should be a FocusEvent object and not a MouseEvent object. The correct code should read:

function textFocus(evt:FocusEvent):void {
   evt.target.text = ‘ ‘;
}

Cheers,
Derrick

no comments yet

Leave a response

You must be logged in to post a comment.