O'Reilly logo

Foundation ActionScript for Flash 8 by David Powers, Sham Bhangal, Kristian Besley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Drawing API

What we'll cover in this chapter:

  • Using the drawing API in Flash to dynamically create lines, curves, fills, and pattern effects

  • Working with scripted color

  • Understanding data-driven sites

  • Creating the color transitions for the Futuremedia case study

  • Defining the data structure for the case study

One cool feature of Flash is the drawing API, which allows you to create new content within your movie clips. You can now go straight to the engine room of the movie clip and produce new sketches on the fly. In fact, you can create three things:

  • Lines

  • Curves

  • Fills

Although you could emulate lines in early versions of Flash, you couldn't control the movie clip with clever scripting to create controlled curves or fills. And it all started ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required