Chapter 6. MOVIES THAT REMEMBER HOW TO DO THINGS

What we'll cover in this chapter:

  • Breaking down tasks into subtasks and using functions to structure your code

  • Understanding the difference between anonymous and named functions

  • Using functions to recycle blocks of script

  • Using arguments and returning results

  • Making functions more robust through typing

  • Building the dynamic graphics for the Futuremedia site

As you've seen, the ability to handle information in your movies opens up a lot of possibilities. A few chapters back, we introduced variables as containers for data, whether that data is in the form of a string, a number, or a true or false Boolean value. We also covered arrays, which let you store lots of variables under a single name.

Variables and ...

Get Foundation ActionScript for Flash 8 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.