O'Reilly logo

Foundation ActionScript 3, Second Edition by Paul Milbourne, Darren Richardson

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 5

image

Creating Vector Graphics with the Drawing API

This chapter covers the following topics:

  • How to draw straight and curved lines programmatically
  • How to create solid and gradient-filled shapes
  • How to alter a stroke’s graphic style, including drawing gradient strokes
  • How to combine the drawing API methods to create a complete graphic
  • How to move your graphic in a 3D space

ActionScript 3.0 includes a Graphics class that provides a drawing API, which you can use to create vector graphics through code. Each Sprite or Shape instance you create actually includes a Graphics instance that can be used to draw within its respective parent object. ...

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