Hi,
can you put your grids in a nested clip?

The problem you describe only occurs when you mix, ie you AND your grid AND
v2 components on the root.

If you put components on the _root, but your grids in say
_root.gridContainer, you should be fine.

In addition you can probably detect if a certain class exists with
_global.mx.core. etc

greetz
JC


On 8/7/07, Darren Bowers <[EMAIL PROTECTED]> wrote:
>
> I have written a class that simply creates movieclips (grids) on screen.
> It
> draws everything from actionscript so no library items are required.
>
> However, I am passing this class on to developers that will use it as they
> see fit. The problem is with the depth management. It seems I am stuck
> with
> forcing the developers not to use any components, otherwise the depth
> management is all stuffed up.
>
> If I use getNextHighestDepth(), I can create and destroy movieclips freely
> which is fine. Until someone uses a v2 component (like a button), then it
> breaks. They will create, but wont destroy because they get an invalid
> depth
> at creation.
>
> If I decide to use the DepthManager class, I have to have at least one v2
> component in the library for it to work. The reason i created the class in
> the first place was to keep things small and libraryless if i wanted to.
>
> its seems I'm damned if i do and i'm damned if i dont.
>
> Is there any way to detect for components and use the DepthManager class
> instead of getNextHighestDepth()?
>
> cheers,
> Darren
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to