4. ActionScript and Math

ActionScript has tons of mathematical operators built in to the language to help you evaluate mathematical equations. Now, I wouldn’t throw away your handheld calculator just yet. ActionScript has a lot of power, but it’s designed to help with your applications, not for general use. In addition to these mathematical operators, there are some functions that can help with common mathematical tasks like rounding numbers.

In this section, you’ll learn all the basic arithmetic operators that you’ll use in ActionScript. Also, there are some convenient shortcuts to make working with math easier that you’ll cover as well.

Mathematical Operators

In ActionScript, you can use simple math operators to perform arithmetic functions ...

Get Fundamentals of ActionScript 3.0: Develop and Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.