O'Reilly logo

Foundation ActionScript for Flash 8 by David Powers, Sham Bhangal, Kristian Besley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required