BIT-101 [2003-2017]

ActionScript Animation: Making Things Move – ERRATA


So far, only one reported typo in the book. A couple of people have caught it. Thought I’d put it up here so it slips up a few less people, and I have a place to point people when they ask. It’s in Chapter 5, page 106, and ch05_03.fla. In the first few lines of the onEnterFrame function, it states:


var radians:Number = angle * Math.PI / 180;
var vx:Number = Math.cos(angle) * speed;
var vy:Number = Math.sin(angle) * speed;

The correct code should be:


var radians:Number = angle * Math.PI / 180;
var vx:Number = Math.cos(radians) * speed;
var vy:Number = Math.sin(radians) * speed;

Sorry that slipped by. Should any more come up, I’ll make them known.

« Previous Post
Next Post »