Lesson 15. Controlling Movie Clips Dynamically

In earlier lessons, you learned how to use frame, clip, and button events to make things happenoften to manipulate a movie clip instance. In this lesson, you'll learn how to manipulate movie clip instancesduplicating, attaching, coloring, scaling, and positioning thembased on dynamic input. We'll also show you how to control movie clip instances based on the feedback of a clicked button, as well as introduce you to Flash's drawing methods. By the end of the lesson, you will have created a simple drawing application and a dynamically generated scrolling list.

You will create this drawing application in this lesson to learn about the various ways in which you can control movie clip instances dynamically.

graphics/15inf01.jpg

WHAT YOU WILL LEARN

In this lesson, you will:

  • Duplicate and attach movie clip instances

  • Create continuous-feedback buttons to move a movie clip instance

  • Draw lines and filled shapes dynamically

  • Change the stacking order of movie clip instances dynamically

  • Script drag-and-drop functionality

  • Remove movie clip instances dynamically

APPROXIMATE TIME

This lesson takes approximately one hour to complete.

LESSON FILES

Starting Files:

Lesson15/Assets/scrollingList1.fla

Lesson15/Assets/draw1.fla

Completed Projects:

scrollingList3.fla

draw5.fla