AS 2.0 hooray

Out of context: Reply #1

  • Started
  • Last post
  • 16 Responses
  • enjine0

    1) passing a reference to the Class A Object upon instantiation via the constructor is the right way to do it. you don't want to hardcode that object in your class or even in the .fla code itself. are there multiple class A objects instantiating multiple B Objects?

    2) zillions of ways of doing it. i don't use the getNextHighestDepth() function for the same reason, and i usually just end up making a local variable and increment it as i instantiate new mcs. if you actually want to manage your movieclip depths at runtime at any level beyond simple incrementing, yeah you'd probably want to class it out.

    just my $.02
    i'm enjoying AS2 nowadays too, and there are a bazillion little problems like these that you run up against.

    just started reading http://www.amazon.com/exec/obido…
    and it's really helping me a lot. share up any progress yr making with the community, i'm sure plenty are interested.

View thread