Re: [FlexJS] Events redux

2017-03-06 Thread Harbs
> On Mar 6, 2017, at 6:24 PM, Alex Harui wrote: > > > > On 3/6/17, 8:05 AM, "Harbs" wrote: > >> Actually, it looks like it’s only implemented to make the compiler happy. > > Hmm. In my copy of EventDispatcher.as, hasEventListener calls > goog.events.hasListener. The SWF side picks it up f

Re: [FlexJS] Events redux

2017-03-06 Thread Harbs
MockLayoutChild had an error. When I fixed that, everything seems to compile. I’ll commit the change… > On Mar 6, 2017, at 5:51 PM, Alex Harui wrote: > > hasEventListener has been implemented. I didn't notice until now that it > is commented out of IEventDispatcher for JS. Don't know why that

Re: [FlexJS] Events redux

2017-03-06 Thread Alex Harui
On 3/6/17, 8:05 AM, "Harbs" wrote: >Actually, it looks like it’s only implemented to make the compiler happy. Hmm. In my copy of EventDispatcher.as, hasEventListener calls goog.events.hasListener. The SWF side picks it up from flash.events.EventDispatcher. With this and the problem with int

Re: [FlexJS] Events redux

2017-03-06 Thread Harbs
Actually, it looks like it’s only implemented to make the compiler happy. I’d be interested in trying out dual. How could it work on the swf side if willTrigger is not implemented? And how does it work when the JS side and swf side have different signatures (i.e. flash Event vs. Object)? > On M

Re: [FlexJS] Events redux

2017-03-06 Thread Alex Harui
Hopefully, I'll get the dual branch operational today and we can check out this scenario on that branch. It should alleviate a lot of the issue. hasEventListener has been implemented. I didn't notice until now that it is commented out of IEventDispatcher for JS. Don't know why that his, but fee

[FlexJS] Events redux

2017-03-06 Thread Harbs
I’m again struggling with the fact that FlexJS events have weird inheritance. I’m working on a TLF port to FlexJS (and no, I have no idea when I’ll be able to donate the results. I hope to be able to donate it in some form, but I don’t know when I’ll be in a position to do that.) Either way, TLF

Re: [FlexJS] Events redux

2017-03-06 Thread Harbs
> As I’m writing this I’m realizing that I can probably not make these classes > implement IEventDispatcher. I’ll see how that goes… Bah. It creates an EventDispatcher from new EventDispatcher(this). It also uses hasEventListener and willTrigger which FlexJS both do not support… :-( > On Mar 6