Question
Catching an event fired in another class
Hey Everyone,
I have one main class and two subclasses. The main class instantiates the two subclasses. One of the subclasses is a circle class that loads in images and masks them, and the other is a list class that lists out a bunch of buttons. I have over 200+ buttons being generated from an xml file in the list class. What I want to have happen is this:
On rollover of one of the list buttons, load the corresponding image into the circle class.
How do I add an event listener that fires upward into the main class so I can load the image into the circle class?
Attached is my current code.
Thanks, TK
I have one main class and two subclasses. The main class instantiates the two subclasses. One of the subclasses is a circle class that loads in images and masks them, and the other is a list class that lists out a bunch of buttons. I have over 200+ buttons being generated from an xml file in the list class. What I want to have happen is this:
On rollover of one of the list buttons, load the corresponding image into the circle class.
How do I add an event listener that fires upward into the main class so I can load the image into the circle class?
Attached is my current code.
Thanks, TK