Accessibility

Flash Article

Creating 3D Classes with ActionScript 2.0


Chad Corbin

Chad Corbin
www.lo9ic.com

Table of Contents

  1. Introduction
  2. Overview of ActionScript 2.0
  3. Doing Quaternion Math
  4. Constructing 3D Classes
  5. Putting the Pieces Together

This article describes how to create 3D effects in Macromedia Flash using a class-based programming model. I begin with an overview of the new syntax describing many of the new features in ActionScript 2.0, followed by a presentation of a 3D calculation method that uses quaternion math for fast, efficient 3D transformations.

Rather than demonstrating cool 3D effects, I emphasize creating classes that you can use in 3D engines. I examine these classes and demonstrate how to implement them to create a 3D scene. Hopefully, after reading this article you'll be able to use or modify the code presented here to explore 3D and class-based programming on your own.

Requirements

To complete this tutorial you will need to install the following software and files:

Macromedia Flash MX Professional 2004


Download sample files for this tutorial




About the author

Chad Corbin is an award-winning Flash developer best known for his work on www.lo9ic.com. Chad currently works for Wall Street On Demand, where he develops Flash applications and financial websites for leading investment firms.