Chapter 3. Stage3D: High Performance Visuals

The single most written about feature of Flash Player 11 would definitely be the new accelerated graphics rendering engine available through Stage3D (previously known by the codename “Molehill”). This advanced rendering architecture can be used in rendering both 2D and 3D visual objects within Flash Player through direct use of the APIs or by implementation of one of the many engines and frameworks that have been built on top of these APIs.

Warning

To use Stage3D in Flash Player, we must set the wmode to direct if embedding within a web browser.

The main benefit of using the Stage3D APIs is that everything rendered using Stage3D on supported system configurations will be rendered directly through the system GPU (Graphics Processing Unit). This allows the GPU to assume total responsibility for these complex visual rendering tasks, while the CPU (Central Processing Unit) remains available for other functions.

Warning

In those cases where rendering Stage3D using hardware is not available on a particular system, the Stage3D view will be rendered using software as a fallback.

Stage3D Accelerated Graphics Rendering

The new flash.display.Stage3D class works very similar to flash.media.StageVideo in how it behaves as a display object within Flash Player. Just like StageVideo, Stage3D is never added to the Flash DisplayList but rather exists separately from that stack of objects. As in the case of StageVideo usage, the DisplayList appears above Stage3D ...

Get What's New in Flash Player 11 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.