Dispatching events between different classes
Im trying to dispatch and event from an XML class.
dispatchEvent(new Event (XMLClass.INDEX_CHANGED));
and catch it in the display class
import AS.XMLClass;
private var _xml = new XMLClass();
_xml.addEventListener(XMLClass.XML_LOADED, swapImage);
I know that im missing something because the application works
and the function runs but its not dispatching the event the event
or maybe it's not catching the event in the display class, even though everything else is working
and im not gettin' any errors.