• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part IV: Transforming Graphics and Sound > Controlling the Movie Clip

Chapter 7. Controlling the Movie Clip

The movie clip is a powerful object. Its power comes from the myriad of properties, methods, and events that are available to it. Essentially, Flash lets you control the way movie clips look and behave. Movie-clip properties such as position, scale, rotation, transparency, color, and even instance name can all be changed with ActionScript. As a result, you can create arcade-style interactivity, with characters changing in response to viewer input or conditions. Imagine a game of Tetris created entirely in Flash. Each geometric shape could be a movie clip, and the viewer would control its rotation and position with the keyboard. A game of Asteroids could feature an alien ship that moves in response to the viewer’s position. This kind of animation isn’t based on tweens you create while authoring the Flash movie. Rather, this is dynamic animation that is essentially “created” during playback.

Flash also gives you powerful methods to control a movie clip’s behavior. Make movie clips draggable so that viewers can actually pick up puzzle pieces and put them in their correct places, or develop a more immersive online shopping experience in which viewers can grab merchandise and drop it into their shopping carts. You’ll learn how to detect where draggable movie clips are dropped on the Stage, as well as control collisions and overlaps with other movie clips. You’ll learn how to generate movie clips dynamically, so that new instances appear on the Stage during playback. You can use movie clips to create moving masks and even to create drawings—lines, curves, fills, and gradients.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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