0 Replies Latest reply on Jun 20, 2006 9:10 AM by SPGAnne

    Adding Event Broadcasting to a Class

      A newbie here, so please be gentle.

      I am trying to create a new class where I want each instance to be able to broadcast messages. I have tried to use AsBroadcaster. In the constructor function I have


      Then inside one of my class's private methods


      When I check the script, I get an error saying "There is no method with the name 'broadcastMessage' ".

      Is it not possible to use AsBroadcaster inside a class? If not, what would be a good/easy way to add this kind of functionality?

      In one of my planned uses of this I could have 100's of instances that need to broadcast, so I need a light weight easy way to do this.

      Thanks in advance for anyone who can help me.