Re: Possible compiler error

2018-08-28 Thread Carlos Rovira
Thanks, while I don't really need this for now since I get other path I'll left this, since I don't get it working, but is good to know that is possible. Thanks for letting me know! :) El mar., 28 ago. 2018 a las 18:45, Alex Harui () escribió: > If ListView is in a different SWC and that SWC

Re: Possible compiler error

2018-08-28 Thread Alex Harui
If ListView is in a different SWC and that SWC doesn't get re-compiled, you can run into this sort of problem. If ListView is in a different SWC, make sure that SWC does compile cleanly by examining the console output. I think I've seen some errors fail to rebuild the SWC but still report

Re: Possible compiler error

2018-08-28 Thread Harbs
There’s a number of places in the framework where there’s overrides with parameters that default to null: ElementWrapper has: override public function addEventListener(type:String, handler:Function, opt_capture:Boolean = false, opt_handlerScope:Object = null):void TableLeafElement has:

Re: Possible compiler error

2018-08-28 Thread Carlos Rovira
Hi, thanks for the responses, but maybe I didn't express right. I mean the superclass signature is in ListView protected function selectionChangeHandler(event:Event):void and I want to change it to have default "= null": protected function selectionChangeHandler(event:Event = null):void then

Re: Possible compiler error

2018-08-28 Thread Olaf Krueger
Hi Carlos, as Harbs mentioned, my experience is also, that implemented interface methods or overridden methods always has to be implemented with the entire same signature, including optional (default parameters) and required parameters. >From the AS3 docs regarding interfaces [1]: "You also have

Re: Possible compiler error

2018-08-28 Thread Harbs
I’m not sure why, but I think this is normal. (I think it’s a limitation in Flash.) To use a default, you need to have the superclass support default values as well. > On Aug 28, 2018, at 12:39 PM, Carlos Rovira wrote: > > I'm finding this error, and don't know if is a problem or not. > >

Possible compiler error

2018-08-28 Thread Carlos Rovira
I'm finding this error, and don't know if is a problem or not. I'm introducing in this signature protected function selectionChangeHandler(event:Event):void a "= null" protected function selectionChangeHandler(event:Event = null):void And I get this error: Error: Incompatible override.