Wednesday, September 07, 2005

Flash® 8 - flash.geom.Point by Keith Peters

There are many ways to learn about the new flash.geom.Point class in Flash® 8 although understanding it from Keith Peters' perspective is a rare opportunity. In today's example Keith provides a vector drawing example using flash.geom.Point. Amazing!


Use your mouse to draw above.

Directly from the example comments:
"flash.geom.Point is a new class in Flash® 8 that simplifies working with two-dimensional locations. A point has two properties: x and y. It also has many useful methods for manipulating single or multiple points. This example shows you how to create a point, see what it contains, and contains a simple drawing program using Points created with the mouse's location."

The key to this example is that Keith is storing a set of flash.geom.Point instances within an Array and allowing the Drawing API to render the accumulated strokes to screen. Keith has started development on the methods within flash.geom.Point and the flash.geom.Rectangle classes. I am looking forward to exploring Keith's examples for these methods. Great work Keith!

If you are interested in exploring Macromedia® Flash® from a different perspective, we invite you to license Flash® By Example. Keith Peters is one of 22 amazing authors contributing to our ever growing library of examples.

More to come,

Ted :)

0 Comments:

Post a Comment

<< Home