Listeners and Scope

Hi All,

I am trying to fire an event in my JS file to a listener rendered by lazy-initialization code, but the two don't want to talk to each other. Do I need to define a specific scope? They are both rendered on the same page..

Sorry Animal, I understand the assignment of this to the scope when creating the event, but how does that relate to the listener which is in a different JS class. If I use this on the listener, it fails - if I remove the scope on the listener it still fails.

Apologies, I have tried to locate some more information on the cross scoping of variables but can't find an answer to this one

More listening

Hi,
I'm having troubles triggering events, I belive that I have either scope or the triggering wrong.
I have been reading http://extjs.com/forum/showthread.php?p=259901.
I would like the button to trigger its handler then inside the handler trigger an event that the Demo.App catches and later on maybe trigger an event that the Demo.MyCenterType could listen to.
I have it working if i do an this.on() inside Demo.AppMenuButtons initComponent but thats no use to me just an indication that my scope must be wrong
I would be grateful for any hints.