> IMO, the externs swcs are also for developers wanting to build “native” JS
> applications without the FlexJS components, so any GCL.swc needs to
> support some developer using GCL and native JS.  So the two swcs need to
> be compatible with each other.   We could just hack up a GCL just to get
> the FlexJS JS to be written in AS but I feel like spending a day or two
> trying to see if there is a way we can be more general about it.

Well, it would be nice if the EXTERNC could compile it all to .as but IIRC, it 
was far to be able to do it, the reason why I didn't consider it as another 
extern but only as a stub with the only purpose I described before.
Now, if you can compile it entirely to .as, what you're saying would make more 
sense to me indeed but for now, only a part of the Event API has been included 
and for a big part, it was by hand.

Frédéric THOMAS

> From: aha...@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Fri, 18 Sep 2015 16:20:21 +0000
> 
> 
> 
> On 9/18/15, 9:05 AM, "Frédéric THOMAS" <webdoubl...@hotmail.com> wrote:
> 
> >> Well, some SWC has to provide the builtins like Object, Array, etc.  My
> >> guess is that your config is depending on a playerglobal or airglobal,
> >>and
> >> that does work for me, but I was thinking that long-term we want GCL to
> >> depend on js.swc and use its Object and Event definitions in there
> >>because
> >> that is the true set of classes available to GCL developer at runtime.
> >> For example, in one of API right now I saw use of the Class builtin,
> >>which
> >> doesn’t exist in JS.
> >
> >Hmm, not sure I get your point about why to making it dependent of js.wc.
> >
> >To me, we use the GCL only as a stub to be able to strongly type our
> >code, not for what it means at JS point of you, doing so, until it
> >compiles and provide us with strong types, I'm happy with, am I missing
> >something ?
> >I added it as an external library in the Core and the
> >playerglobal did the trick to build it, why it doesn't work for you ?
> 
> IMO, the externs swcs are also for developers wanting to build “native” JS
> applications without the FlexJS components, so any GCL.swc needs to
> support some developer using GCL and native JS.  So the two swcs need to
> be compatible with each other.   We could just hack up a GCL just to get
> the FlexJS JS to be written in AS but I feel like spending a day or two
> trying to see if there is a way we can be more general about it.
> 
> -Alex
> 
                                          

Reply via email to