4

Programming Depth:

Interactive Movement

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 MovieClip class, Sound class, and Math class. Each object and class has a unique set of properties ...

Get Flash 3D 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.