AS 2.0 hooray

Out of context: Reply #7

  • Started
  • Last post
  • 16 Responses
  • enobrev0

    i've always wanted to write some kind of advanced depth management class (Started one a couple years ago), that might even allow for managing multiple depth groups (as well as freeing depths whien clips are removed, etc). Probably a static class.

    But every time i start, I get bored as hell and end up using a globel 'depth' var and incrementing it everywhere.

    As far as design patterns, be sure to check out martin fowler.

    http://www.martinfowler.com/

    As for referencing a parent instance, it's probably best to pass 'this' to the constructor.

View thread