Retrieving/simulating run-time "layer" functionality in Flash under ActionScript 3.

Posted by Triynko on Stack Overflow See other posts from Stack Overflow or by Triynko
Published on 2010-04-22T16:35:42Z Indexed on 2010/04/22 23:23 UTC
Read the original article Hit count: 292

Filed under:
|
|
|
|

Are there any AS3 classes to help arrange objects into layers, like in the designer, such that the objects all have the same parent?

Obviously, I can use container clips to simulate layers, but I specifically want this kind of functionality for objects that have the same parent.

My understanding is that the design-time notion of layers does not exist at run-time, and objects just have a depth index.

I'm creating a class to simulate layering functionality with a single parent, but if one already exists, I'd like to check it out.

On a side note... how do design-time layer masks manifest themselves at runtime in AS3? I thought maybe all objects on the masked layer share the same mask object, but the "mask" property appears to be null for all objects on the masked layer, even though they share the same parent timeline as the unmasked objects (i.e. unmasked layer object parent == masked layer object parent; therefore, no masked subcontainers appear to be in use).

© Stack Overflow or respective owner

Related posts about flash

Related posts about as3