4 Replies Latest reply on Nov 10, 2006 8:13 AM by Peter Lorent

    Help: dispatchevents woes

    Special-k
      Recently I decided to write a timeline class to help out with an idea I had. Well it's evolved quite a bit (in a good way). Well I started writing some other classes and having them dispatch events using the eventDispatcher. Now what's weird to me is that I have one class that it seems to hate, and I don't understand why.

      take a look at the setYears method. I just have it doing a common dispatchEvent in the Calendar class. Then in the CalendarMgr, in the constructor, I have addEventListener being added to the calendar class variable. When I run it, nothing gets passed over to show that this event fired.

      Do I have the right idea for using the dispatch event in this case? Did I miss something?

      Help,

      Kelly