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 ...

Get Foundation ActionScript for Flash 8 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.