7 So what is a Variable?

After the first blistering introduction to ActionScript in Chapter 1, we now take a more leisurely stroll through the basics of programming, starting with variables. The most fundamental aspect of programming is the ability to store and retrieve data. In essence all computer programming involves the manipulation of data. If your game uses a moving animated character running, jumping and shooting, you will need to store the position, size and action of the character as the game develops, as this information is not static; it varies as the user plays the game. In this chapter we will look at how a variable can be used to store lots of different types of information including the data you would need for your character. Some ...

Get Flash MX 2004 Games now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.