Interface issue and addEventListeners

I have a polymorphic situation that is thus…



private var loadXML                        :ILoader;

if (!Capabilities._internal) //testing locally
            {
                loadXML = new LoadXML("../assets/xml/copy_en_gb.xml");
            }
            else
            {
                loadXML = new LoadXMLSecure("www.xbox.com/copy_en_gb.xml");
            }
            
            loadXML.addEventListener(XMLParsed.PARSED, parsed);
            loadXML.addEventListener(XMLParsed.FAILED, failed);


So you can see that depending I’m not sure if the datatype is LoadXML or LoadSecureXML

thats why I made the Interface but now its breaking the listening for the events on these classes…:yoda: