Chapter 4

Graphics and Animation

Graphics are a fun “crowd pleaser” for people of all ages. If you enjoy graphics as much as we do, you'll be glad to discover that the Flex-based graphics code samples that work on a desktop browser will also work on a mobile device. In addition, you can take advantage of touch-related events and gestures (which were discussed in Chapter 2) when you create graphics-based applications for mobile devices.

The first part of this chapter shows you how to render various two-dimensional shapes, such as rectangles, ellipses, Bezier curves, and paths. The second part of this chapter contains a code sample of rendering geometric objects with linear gradients and radial gradients. The third part of this chapter provides ...

Get Pro Android Flash 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.