background preloader

Flash Tutorials

Facebook Twitter

Flash Game Tuts | Free Flash Game Tutorials in AS2 and AS3. Flash Tutorials, Flash website creation tutorials. Luna Imaging, Inc. | LUNA Flash Tutorials. Macromedia Flash Tips and Tutorials. Flash and ActionScript Tutorials. Gotoandlearn.com - Free video tutorials by Lee Brimelow on the Flash Platform. Flash tutorials - FlashVault.net. School of Flash. One of the many things that have changed in ActionScript 3 has been the way that Flash handles depths, or the stacking order of objects on the stage. In ActionScript 2, there was a practically unlimited number of depths into which you could place an object. These depths determine what objects appear in front of other objects.

An object with a depth of 100, for example, would cover up an object with a depth of 50. But in ActionScript 2, these depths didn't have to be consecutive. In other words, if you only had 2 objects on the stage, you could very well set one of them to a depth of zero and set the other one to a depth of 1000. Well, in ActionScript 3, things are a little different. The stacking order is still determined by the index of the depth (higher numbers cover up lower numbers), but in AS 3, the available depths are limited by the number of objects on the stage. Let's take a look at a quick exercise to illustrate how depths are handled in ActionScript 3: 1.