Chapter 14. Controlling Movie Clips Dynamically


In the lessons leading up to this, you learned how to use frame events, clip events, and button events to make things happen often to manipulate a movie clip instance. In this lesson, you'll learn how to manipulate movie clip instances duplicating, attaching, coloring, scaling, and positioning them based on dynamic input. We'll also show you how to control movie clip instances based on the continuous feedback of a pressed 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.

This drawing application is one of the projects you will create in this lesson in order to learn about the various ways you can control movie clip instances dynamically.

graphics/14fig01.gif

WHAT YOU WILL LEARN

In this lesson, you will:

  • Build a scrolling list.

  • Duplicate and attach movie clip instances.

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

  • Create empty movie clip instances dynamically

  • Learn to how to 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 1 hour to complete.

LESSON FILES

Media Files:

None

Starting Files:

Lesson14/Assets/scrollingList1.fla

Lesson14/Assets/draw1.fla

Completed Project:

scrollingList3.fla

draw5.fla



Macromedia Flash MX ActionScripting Advanced. Training from the Source
Macromedia Flash MX ActionScripting: Advanced Training from the Source
ISBN: 0201770229
EAN: 2147483647
Year: 2002
Pages: 161

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net