The previous chapter explored how animation enhances the illusion of depth. Motion tweens were used in Flash to create parallax scrolling and to simulate camera movements. This chapter explores using ActionScript to add interactivity to your Flash files. ActionScript is Flash’s programming language. It allows you to create a variety of interactions, from simple to complex.
ActionScript uses object-oriented programming (OOP). Objects are the types of data that Flash can store. Examples of objects include graphics, sounds, and text. Objects belong to a larger group called a class. Examples of classes include the
Sound class, and
Math class. Each object and class has a unique set of properties ...