AIUI, no.  If ValidatedComboBox subclasses mx.controls.ComboBox but doesn't 
override the DropDown, then the dropDown will make itself a child of the Stage 
and may also attach a listener to the Stage (stage.addEventListener).  I don't 
think your code can override the Stage's addEventListener so any cleanup calls 
will not work.   I think you would have to wrap every UIComponent in the 
framework.

I still think using the profiler or commenting out code is your best bet.

HTH,
-Alex

On 5/24/18, 2:13 PM, "aceinc" <pa...@compuace.com> wrote:

    I never use combobox directly, I always use "ValidatedCombobox" which has my
    clearEvents method in it. Both ValidatedComboBox as well as the class (the
    module that is loaded) that has the code;
    
    var cb:ComboBox = new ValidatedComboBox(); 
    addChild(cb); 
    trace(cb.dropDown); 
    
    in it, have the overridden event handler as well as the clearEvents code.
    Would it not clear all of the events created explicitly as well as
    implicitly when clearModuleEvents was call during just prior to unload?
    
    
    
    --
    Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.2333346.n4.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7C21ce82c537da4a35661e08d5c1bb3abf%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636627932246987998&sdata=ttGJoB%2F3lrApmzYWeXJuChZMpQ9cr0oAoBZ0bxJwWuc%3D&reserved=0
    

Reply via email to