AS 2.0 hooray

Out of context: Reply #6

  • Started
  • Last post
  • 16 Responses
  • bry0

    so anyway. is the following the way i ought to get a class A reference into a class B instance?

    (in class A)
    var classBclip:Movieclip;

    public function ClassA() {
    this.classBclip = this.attachMovie( "ClassB", "mc_classb", depth++, {classparent: this} );
    }

    -----

    what i want to know is whether not i can have class B's instance, on its own, figure out _who_ constructed it, without the "hint" from class A (which in this case is the {classparent: this}).

View thread