No Method with the name 'addListener'

Ok,

I have one script which is working a treat ( using ASBroadcasters )
and then today, I copied and pasted the same script into a new site and whenever I try to register a listener, I get the dreaded “There is no method with the name addListener”…

Any ideas as to why this is happening.

oh, and a few things.
the broadcasting object is a class extending the XML class, and i have used the same script before with no issues
the listening object extends the object class, and whilst this class has been freshly developed, the last time I used the ASBroadcaster methods I didn’t have to extend anything for it to work…

please help, i’ve wasted two days on this, and really can’t afford to spend any more… :frowning:

Just taking a stab in the dark: could it be that it uses addEventListener() instead of addListener() ?

I had actually worked it out,
the addListener method can only be put on certain types of objects, most of which are the key, stage, mouse etc etc
I was trying to get a class to listen to a class within itself… which as I found out last night, is a no-go-er, bummer.

Change of question…

Whats the best way for a class to broadcast and even so another class can react?