Chapter 2. ACTIONSCRIPT 3.0 FUNDAMENTALS

This chapter covers how to do the following:

  • Store information in your projects using variables

  • Choose the right data type for the information you need to store

  • Create constants to store information that never changes

  • Perform arithmetic and make decisions

  • Perform a set of actions repeatedly by using loops

  • Separate common parts of code into functions

  • Comment your code so that you and others know what it does

In this chapter, you will learn about the basic fundamental building blocks of the ActionScript 3.0 language.

I'll warn you in advance that this chapter is probably the most challenging chapter in the whole book for new programmers because there is a wealth of information covered, but it is also the single most ...

Get Foundation ActionScript 3.0 for Flash and Flex 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.