Book Image

ActionScript Graphing Cookbook

Book Image

ActionScript Graphing Cookbook

Overview of this book

"A picture is worth a thousand words" has never been more true than when representing large sets of data. Bar charts, heat maps, cartograms, and many more have become important tools in applications and presentations to quickly give insight into complicated issues.The "ActionScript Graphing Cookbook" shows you how to add your own charts to any ActionScript program. The recipes give step-by-step instructions on how to process the input data, how to create various types of charts and how to make them interactive for even more user engagement.Starting with basic ActionScript knowledge, you will learn how to develop many different types of charts.First learn how to import your data, from Excel, web services and more. Next process the data and make it ready for graphical display. Pick one of the many graph options available as the book guides you through ActionScript's drawing functions. And when you're ready for it, branch out into 3D display.The recipes in the "ActionScript Graphing Cookbook" will gradually introduce you into the world of visualization.
Table of Contents (17 chapters)
ActionScript Graphing Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


If this is your very first time programming 3D, this chapter is going to be a challenge. There's no way around it, but programming 3D involves a lot more than drawing in two dimensions.

Not only do you have an additional coordinate, but you also need to convert the 3D drawing into a 2D image that can be shown on the screen.

There are models, cameras, scenes, views, and much more that you usually don't need to understand for 2D programming. But even the smallest 3D program requires you to at least understand the basic concepts and know how they fit in the larger picture.

Luckily, there are many tutorials online to get started with 3D and ActionScript. For instance, the following link provides a good overview of the basics: http://www.flashmagazine.com/Tutorials/detail/flash_3d_basics/

In this chapter and the next, we will focus solely on Away3D (http://away3d.com/). This is one of the most popular and open source 3D libraries for ActionScript. We use only this library to keep the...