O'Reilly logo

Away3D 3.6 Cookbook by Michael Ivanov

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

Managing Z-Sorting by automatic sorting and using layers

Away3D Lite, being a compact engine, has a limited set of tools for solving Z-Sorting issues in comparison to Away3D. Basically, there are two ways to sort an object's depth. First is by automatically sorting which Away3D Lite performs by default. The second approach is manual and which implies usage of layers. In this chapter, you are going to learn how to use both of them.

Getting ready

Create a new class which extends FastTemplate and name it SortingDemo.

In this example, we make use of GUI controls which are part of a Flash components library developed by Keith Peters and called MinimalComps. Go and get it for free here: http://www.minimalcomps.com/. Put the .SWC into your SWC folder or ...

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