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