> > Also, I observed that in HTMLElementWrapper, the element is typed as
> > EventTarget, but I think we’ll need to create a class like FlexHTMLElement
> > that adds flexjs_wrapper to an HTMLElement.  That’s interesting because it
> > means we won’t be able to do a straight port if we want more type-safety
> > from the compiler.  Instead we’ll have to create some new utilities
> > classes.
> 
> Yes, it would allow to conditional compile only some Application's methods 
> instead of the all class as I did.

Oups, I was talking about Sprite here.

Frédéric THOMAS

> From: webdoubl...@hotmail.com
> To: dev@flex.apache.org
> Subject: RE: [FlexJS] Framework using externs (was: Setup Error)
> Date: Thu, 17 Sep 2015 17:32:01 +0100
> 
> > I’m interested to see what you put in GCL.swc.  I created a few stubs for
> > the calls I needed and also changed the compiler so it will allow
> > goog.events.fireListener to be a class called goog.events with a
> > fireListener member and not fail by assuming goog.events was a package and
> > not finding the fireListener class.
> 
> After having cherrypicked your fix, I added a goog.events class and added a 
> static getter / setter and t made the trick !
> 
> > Also, I observed that in HTMLElementWrapper, the element is typed as
> > EventTarget, but I think we’ll need to create a class like FlexHTMLElement
> > that adds flexjs_wrapper to an HTMLElement.  That’s interesting because it
> > means we won’t be able to do a straight port if we want more type-safety
> > from the compiler.  Instead we’ll have to create some new utilities
> > classes.
> 
> Yes, it would allow to conditional compile only some Application's methods 
> instead of the all class as I did.
> 
> As I mentioned before, there was some changes on the core classes it depends 
> on on the develop branch I did not reported to this one.
> Also, please double check HTMLElementWrapper and the @export in general, 
> wasn't sure whenever a subclass inherit the export behaviour, so, I might  
> have missed some.
> 
> I committed GCL, read the commit comments and come back to me if you need 
> more details.
> 
> Thanks,
> Frédéric THOMAS
> 
> > From: aha...@adobe.com
> > To: dev@flex.apache.org
> > Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> > Date: Thu, 17 Sep 2015 06:31:47 +0000
> > 
> > 
> > 
> > On 9/16/15, 1:13 PM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote:
> > 
> > >> Yeah, like several of the interfaces.  But I’ve commented them out of
> > >>the
> > >> project right now and am just trying to get Application and all of its
> > >> dependencies to compile.
> > >
> > >My guess is it won't be easy in as3 to express some of the GCL calls
> > >though without the lib
> > 
> > I’m interested to see what you put in GCL.swc.  I created a few stubs for
> > the calls I needed and also changed the compiler so it will allow
> > goog.events.fireListener to be a class called goog.events with a
> > fireListener member and not fail by assuming goog.events was a package and
> > not finding the fireListener class.
> > 
> > Also, I observed that in HTMLElementWrapper, the element is typed as
> > EventTarget, but I think we’ll need to create a class like FlexHTMLElement
> > that adds flexjs_wrapper to an HTMLElement.  That’s interesting because it
> > means we won’t be able to do a straight port if we want more type-safety
> > from the compiler.  Instead we’ll have to create some new utilities
> > classes.
> > 
> > I’m done for today.  Will spend more time on it tomorrow.
> > 
> > -Alex
> > 
> > >
> > >Frédéric THOMAS
> > >
> > >> From: aha...@adobe.com
> > >> To: dev@flex.apache.org
> > >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> > >> Date: Wed, 16 Sep 2015 19:59:57 +0000
> > >> 
> > >> 
> > >> 
> > >> On 9/16/15, 12:55 PM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote:
> > >> 
> > >> >> I started out by trying to compile every AS file in Core with
> > >> >
> > >> >
> > >> >> COMPILE::AS3,false and got lots of errors.
> > >> >
> > >> >Are you talking about the ones not making use of the GCL.swc and having
> > >> >no dependencies with the ones which use it ?
> > >> 
> > >> Yeah, like several of the interfaces.  But I’ve commented them out of
> > >>the
> > >> project right now and am just trying to get Application and all of its
> > >> dependencies to compile.
> > >> 
> > >> -Alex
> > >>                                    
> > >> 
> > >                                     
> > 
>                                         
                                          

Reply via email to