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.

This entry was posted in Flash. Bookmark the permalink.

5 Responses to ActionScript Animation: Making Things Move – ERRATA

  1. I thought of that one was an exercise. 🙂

  2. Dear Keith

    Just wanted to say thanks! Thanks for explaining, sharing and inspiring! Your book is awesome, fun and an invaluable resource…

    Keep on rockin’
    Daniel

  3. Ralph says:

    Hey Keith,

    I can’t put your book down. It goes with me for each and every trip to the thrown. It freakin’ rocks. The only other booked which has moved me so much was Penner’s. I like your book better though because I feel like I can identify with you when you make such comments as: “it took me awhile to get this myself” or “if I can figure it out you can too.” You’ve definately earned your knowledge and it’s why you are one of the best. Feel free to use this as a testimonial!

  4. Thomas says:

    Hey Keith,
    i was just reading your blog article, and had a quick look in your book again, and guess what!
    I found kind of a typo! 🙂

    It says “(c) 2006” on the first page.
    Semms you are way time ahead!

    Thanks a lot for your great book,
    Thomas

  5. Thimon says:

    Yes its a good book!:p

Comments are closed.