I've never had that problem. Try removing the "this" from "this.myFunction". Shouldn't make any difference - but I don't use it, and, as I said, I don't have the problem. :-)
HTH, Ian On 11/28/05, Nikolaj Selvik <[EMAIL PROTECTED]> wrote: > > Hi, > > Thanks for welcoming me to your list! > > I´ve run into a problem using MM's delegate class, couldn't find any info > on this particular issue so here goes: > > Example: > > "mySubClass" inherits from "mySuperClass" > > In "mySubClass" I have: > > myObject.addEventListener("click",Delegate.create(this, this.myFunction)); > > works fine if "myFunction" is defined in "mySubclass", just as it should, > but not if Its defined in "mySuperClass". Why? > > > Best Regards, > > Nick > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders