• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Chapter 6. Statements

We saw in earlier chapters how ActionScript stores and manipulates data. In this chapter we'll see how to do things with that data. We'll give Flash instructions in the form of statements, or phrases of code that instruct the interpreter to perform a specified task.

To make something happen in Flash—whether stopping a sound, playing a movie, running a function, or repeatedly executing some code—we use a statement. In fact, an ActionScript program can be defined as nothing more than a list of statements that tell the interpreter what we want Flash to do. Here, for example, is an entire ActionScript program, which consists of four statements and tells the interpreter to load a web page into the browser:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint