You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Alex Harui <ah...@adobe.com> on 2014/01/23 20:18:29 UTC
[FLEXJS] New SWC for Cross-Compiling
As you may recall, Peter was able to create JS version of DataGrid and
BarChart by writing the AS version and cross-compiling it to JS.
I just checked in a new swc called FlexJSJX and changes to the build
scripts so those components and others can have their AS classes in that
project and their JS versions will be cross-compiled via the FalconJX
version of COMPC.
So, if you are building out a new component for FlexJS, if the JS version
can be completely auto-generated by FalconJX, add the component to
FlexJSJX, otherwise add the AS code to FlexJSUI.swc and your
manually-written JS code to the frameworks/js/FlexJS folder.
Thanks,
-Alex
Re: [FLEXJS] New SWC for Cross-Compiling
Posted by Peter Ent <pe...@adobe.com>.
Alex's fix for DataGridColumn is correct and that build should do it. The
DataGrid in AS now cross-compiles to a working DataGrid in JavaScript.
There are some small differences in event handling that I will try to work
out as things go on (or someone else can if they want to help). But this
was a good experience. For example, I had hand-written the JavaScript
DataGrid at first so I could compare the cross-compiled DataGrid
JavaScript with my version. They were very close, but I saw some small
differences, especially with getter/setter code, that didn't cross-compile
correctly. I changed the ActionScript code just a little bit and that
corrected the JavaScript side.
Here's an example. If I had the ActionScript code as: var label:String =
columns[I].label; The JavaScript code that got generated was identical:
var label /*:String*/ = columns[I].label; Unfortunately, it should have
been columns[I].get_label() in JavaScript. So in ActionScript I just
assigned columns[I] to a typed var and then accessed the label property.
The cross-compiled code then reflected that using the get_label()
function. Something to watch out for when doing this.
More and more, the JavaScript code is mimicking the ActionScript code, but
using "hand written" lower-level JavaScript classes. For instance, the
Label component is specifically written for each language, but now
higher-level, composite components, can use those to build upon.
Peter Ent
Adobe Systems
On 1/28/14 6:21 PM, "Alex Harui" <ah...@adobe.com> wrote:
>OK, the FlexJSJX.swc wasn't getting into the binary kit. I just pushed
>changes for that.
>
>Peter check in some stuff and I think tried to move DataGridColumn from
>FlexJSUI to FlexJSJX and somehow it didn't get in. I put in my working
>copy's DataGridColumn into FlexJSJX for now. This may mean that the
>DataGrid may be broken. We'll have to wait to see until Peter gets back
>on it.
>
>Wait a bit for Jenkins to build a new nightly before trying it out. No
>changes were needed to the installer.
>-Alex
>
>On 1/28/14 11:18 AM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>
>>On Tue, Jan 28, 2014 at 11:08 AM, Alex Harui <ah...@adobe.com> wrote:
>>
>>>
>>>
>>> On 1/28/14 11:01 AM, "OmPrakash Muppirala" <bi...@gmail.com>
>>>wrote:
>>>
>>> >Dont we need this swc when building apps with FlexJS? For example,
>>>the
>>> >DataGridExample at flex-asjs\examples\DataGridExample does not work
>>>now
>>> >because it cannot find the basic:DataGrid component implementation.
>>> Even the AS version doesn't compile?
>>
>>
>>Yes, FB complains about it as well as the FlexJS debug compile. This is
>>the error from FlexJS:
>>
>>C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\DataGridExample\sr
>>c
>>\MyInitialView.mxml:37
>>Error: This tag is unexpected. It will be ignored.
>> <basic:DataGrid id="dataGrid" x="20" y="30" width="400" height="300"
>>change="dataGridChange()" >
>>
>>
>>> I'll check. I did find the JS
>>> version wasn't compiling because the libs folder wasn't in the compiler
>>> options. I'll be checking that in today.
>>> >
>>> >I looked inside the FlexJS sdk installed via the new installer. There
>>>is
>>> >no FlexJSJX.swc under frameworks/as/libs. Is this intentional?
>>> Thanks for catching that. I'll fix that too.
>>> >
>>> >Thanks,
>>> >Om
>>> >
>>> >
>>> >On Thu, Jan 23, 2014 at 11:18 AM, Alex Harui <ah...@adobe.com> wrote:
>>> >
>>> >> As you may recall, Peter was able to create JS version of DataGrid
>>>and
>>> >> BarChart by writing the AS version and cross-compiling it to JS.
>>> >>
>>> >> I just checked in a new swc called FlexJSJX and changes to the build
>>> >> scripts so those components and others can have their AS classes in
>>>that
>>> >> project and their JS versions will be cross-compiled via the
>>>FalconJX
>>> >> version of COMPC.
>>> >>
>>> >> So, if you are building out a new component for FlexJS, if the JS
>>> >>version
>>> >> can be completely auto-generated by FalconJX, add the component to
>>> >> FlexJSJX, otherwise add the AS code to FlexJSUI.swc and your
>>> >> manually-written JS code to the frameworks/js/FlexJS folder.
>>> >>
>>> >> Thanks,
>>> >>
>>> >> -Alex
>>> >>
>>> >>
>>>
>>>
>
Re: [FLEXJS] New SWC for Cross-Compiling
Posted by Alex Harui <ah...@adobe.com>.
OK, the FlexJSJX.swc wasn't getting into the binary kit. I just pushed
changes for that.
Peter check in some stuff and I think tried to move DataGridColumn from
FlexJSUI to FlexJSJX and somehow it didn't get in. I put in my working
copy's DataGridColumn into FlexJSJX for now. This may mean that the
DataGrid may be broken. We'll have to wait to see until Peter gets back
on it.
Wait a bit for Jenkins to build a new nightly before trying it out. No
changes were needed to the installer.
-Alex
On 1/28/14 11:18 AM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>On Tue, Jan 28, 2014 at 11:08 AM, Alex Harui <ah...@adobe.com> wrote:
>
>>
>>
>> On 1/28/14 11:01 AM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>>
>> >Dont we need this swc when building apps with FlexJS? For example, the
>> >DataGridExample at flex-asjs\examples\DataGridExample does not work now
>> >because it cannot find the basic:DataGrid component implementation.
>> Even the AS version doesn't compile?
>
>
>Yes, FB complains about it as well as the FlexJS debug compile. This is
>the error from FlexJS:
>
>C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\DataGridExample\src
>\MyInitialView.mxml:37
>Error: This tag is unexpected. It will be ignored.
> <basic:DataGrid id="dataGrid" x="20" y="30" width="400" height="300"
>change="dataGridChange()" >
>
>
>> I'll check. I did find the JS
>> version wasn't compiling because the libs folder wasn't in the compiler
>> options. I'll be checking that in today.
>> >
>> >I looked inside the FlexJS sdk installed via the new installer. There
>>is
>> >no FlexJSJX.swc under frameworks/as/libs. Is this intentional?
>> Thanks for catching that. I'll fix that too.
>> >
>> >Thanks,
>> >Om
>> >
>> >
>> >On Thu, Jan 23, 2014 at 11:18 AM, Alex Harui <ah...@adobe.com> wrote:
>> >
>> >> As you may recall, Peter was able to create JS version of DataGrid
>>and
>> >> BarChart by writing the AS version and cross-compiling it to JS.
>> >>
>> >> I just checked in a new swc called FlexJSJX and changes to the build
>> >> scripts so those components and others can have their AS classes in
>>that
>> >> project and their JS versions will be cross-compiled via the FalconJX
>> >> version of COMPC.
>> >>
>> >> So, if you are building out a new component for FlexJS, if the JS
>> >>version
>> >> can be completely auto-generated by FalconJX, add the component to
>> >> FlexJSJX, otherwise add the AS code to FlexJSUI.swc and your
>> >> manually-written JS code to the frameworks/js/FlexJS folder.
>> >>
>> >> Thanks,
>> >>
>> >> -Alex
>> >>
>> >>
>>
>>
Re: [FLEXJS] New SWC for Cross-Compiling
Posted by Peter Ent <pe...@adobe.com>.
I am in the process of getting the AS version of DataGrid (in FlexJSJX) to
work with changes I had made to both the AS and JS versions when Alex made
the split. Once I have them working I will update the DataGrid example so
that it works.
Peter Ent
Adobe Systems
On 1/28/14 2:18 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>On Tue, Jan 28, 2014 at 11:08 AM, Alex Harui <ah...@adobe.com> wrote:
>
>>
>>
>> On 1/28/14 11:01 AM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>>
>> >Dont we need this swc when building apps with FlexJS? For example, the
>> >DataGridExample at flex-asjs\examples\DataGridExample does not work now
>> >because it cannot find the basic:DataGrid component implementation.
>> Even the AS version doesn't compile?
>
>
>Yes, FB complains about it as well as the FlexJS debug compile. This is
>the error from FlexJS:
>
>C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\DataGridExample\src
>\MyInitialView.mxml:37
>Error: This tag is unexpected. It will be ignored.
> <basic:DataGrid id="dataGrid" x="20" y="30" width="400" height="300"
>change="dataGridChange()" >
>
>
>> I'll check. I did find the JS
>> version wasn't compiling because the libs folder wasn't in the compiler
>> options. I'll be checking that in today.
>> >
>> >I looked inside the FlexJS sdk installed via the new installer. There
>>is
>> >no FlexJSJX.swc under frameworks/as/libs. Is this intentional?
>> Thanks for catching that. I'll fix that too.
>> >
>> >Thanks,
>> >Om
>> >
>> >
>> >On Thu, Jan 23, 2014 at 11:18 AM, Alex Harui <ah...@adobe.com> wrote:
>> >
>> >> As you may recall, Peter was able to create JS version of DataGrid
>>and
>> >> BarChart by writing the AS version and cross-compiling it to JS.
>> >>
>> >> I just checked in a new swc called FlexJSJX and changes to the build
>> >> scripts so those components and others can have their AS classes in
>>that
>> >> project and their JS versions will be cross-compiled via the FalconJX
>> >> version of COMPC.
>> >>
>> >> So, if you are building out a new component for FlexJS, if the JS
>> >>version
>> >> can be completely auto-generated by FalconJX, add the component to
>> >> FlexJSJX, otherwise add the AS code to FlexJSUI.swc and your
>> >> manually-written JS code to the frameworks/js/FlexJS folder.
>> >>
>> >> Thanks,
>> >>
>> >> -Alex
>> >>
>> >>
>>
>>
Re: [FLEXJS] New SWC for Cross-Compiling
Posted by Madhu Dutta <ia...@gmail.com>.
i dont where i need to add the thing as value added idea. now in market
there are various things are available like ADF,JSF. for front end and
mobile versions. i'm from Telecom background. Oracle right now provides ADF
for front ends where we can use it as 4GL structure. as end to end
solution. So it is possible for Apache to enhanced the Apache Flex for
Oracle for Inventory Systems as a front end(like Apache Net UI beehive),
and provides a builder for end to end solution from front end to DB. Front
end should be flex,then xmls as model and java for Entity.
Then it should be great product for all of us, who are Telecom background.
Flex has the power to perform than the others.
On Wed, Jan 29, 2014 at 12:48 AM, OmPrakash Muppirala
<bi...@gmail.com>wrote:
> On Tue, Jan 28, 2014 at 11:08 AM, Alex Harui <ah...@adobe.com> wrote:
>
> >
> >
> > On 1/28/14 11:01 AM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
> >
> > >Dont we need this swc when building apps with FlexJS? For example, the
> > >DataGridExample at flex-asjs\examples\DataGridExample does not work now
> > >because it cannot find the basic:DataGrid component implementation.
> > Even the AS version doesn't compile?
>
>
> Yes, FB complains about it as well as the FlexJS debug compile. This is
> the error from FlexJS:
>
>
> C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\DataGridExample\src\MyInitialView.mxml:37
> Error: This tag is unexpected. It will be ignored.
> <basic:DataGrid id="dataGrid" x="20" y="30" width="400" height="300"
> change="dataGridChange()" >
>
>
> > I'll check. I did find the JS
> > version wasn't compiling because the libs folder wasn't in the compiler
> > options. I'll be checking that in today.
> > >
> > >I looked inside the FlexJS sdk installed via the new installer. There
> is
> > >no FlexJSJX.swc under frameworks/as/libs. Is this intentional?
> > Thanks for catching that. I'll fix that too.
> > >
> > >Thanks,
> > >Om
> > >
> > >
> > >On Thu, Jan 23, 2014 at 11:18 AM, Alex Harui <ah...@adobe.com> wrote:
> > >
> > >> As you may recall, Peter was able to create JS version of DataGrid and
> > >> BarChart by writing the AS version and cross-compiling it to JS.
> > >>
> > >> I just checked in a new swc called FlexJSJX and changes to the build
> > >> scripts so those components and others can have their AS classes in
> that
> > >> project and their JS versions will be cross-compiled via the FalconJX
> > >> version of COMPC.
> > >>
> > >> So, if you are building out a new component for FlexJS, if the JS
> > >>version
> > >> can be completely auto-generated by FalconJX, add the component to
> > >> FlexJSJX, otherwise add the AS code to FlexJSUI.swc and your
> > >> manually-written JS code to the frameworks/js/FlexJS folder.
> > >>
> > >> Thanks,
> > >>
> > >> -Alex
> > >>
> > >>
> >
> >
>
--
*Thanks & Regards*
*Madhusudan Dutta*
Re: [FLEXJS] New SWC for Cross-Compiling
Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Tue, Jan 28, 2014 at 11:08 AM, Alex Harui <ah...@adobe.com> wrote:
>
>
> On 1/28/14 11:01 AM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>
> >Dont we need this swc when building apps with FlexJS? For example, the
> >DataGridExample at flex-asjs\examples\DataGridExample does not work now
> >because it cannot find the basic:DataGrid component implementation.
> Even the AS version doesn't compile?
Yes, FB complains about it as well as the FlexJS debug compile. This is
the error from FlexJS:
C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\DataGridExample\src\MyInitialView.mxml:37
Error: This tag is unexpected. It will be ignored.
<basic:DataGrid id="dataGrid" x="20" y="30" width="400" height="300"
change="dataGridChange()" >
> I'll check. I did find the JS
> version wasn't compiling because the libs folder wasn't in the compiler
> options. I'll be checking that in today.
> >
> >I looked inside the FlexJS sdk installed via the new installer. There is
> >no FlexJSJX.swc under frameworks/as/libs. Is this intentional?
> Thanks for catching that. I'll fix that too.
> >
> >Thanks,
> >Om
> >
> >
> >On Thu, Jan 23, 2014 at 11:18 AM, Alex Harui <ah...@adobe.com> wrote:
> >
> >> As you may recall, Peter was able to create JS version of DataGrid and
> >> BarChart by writing the AS version and cross-compiling it to JS.
> >>
> >> I just checked in a new swc called FlexJSJX and changes to the build
> >> scripts so those components and others can have their AS classes in that
> >> project and their JS versions will be cross-compiled via the FalconJX
> >> version of COMPC.
> >>
> >> So, if you are building out a new component for FlexJS, if the JS
> >>version
> >> can be completely auto-generated by FalconJX, add the component to
> >> FlexJSJX, otherwise add the AS code to FlexJSUI.swc and your
> >> manually-written JS code to the frameworks/js/FlexJS folder.
> >>
> >> Thanks,
> >>
> >> -Alex
> >>
> >>
>
>
Re: [FLEXJS] New SWC for Cross-Compiling
Posted by Alex Harui <ah...@adobe.com>.
On 1/28/14 11:01 AM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>Dont we need this swc when building apps with FlexJS? For example, the
>DataGridExample at flex-asjs\examples\DataGridExample does not work now
>because it cannot find the basic:DataGrid component implementation.
Even the AS version doesn't compile? I'll check. I did find the JS
version wasn't compiling because the libs folder wasn't in the compiler
options. I'll be checking that in today.
>
>I looked inside the FlexJS sdk installed via the new installer. There is
>no FlexJSJX.swc under frameworks/as/libs. Is this intentional?
Thanks for catching that. I'll fix that too.
>
>Thanks,
>Om
>
>
>On Thu, Jan 23, 2014 at 11:18 AM, Alex Harui <ah...@adobe.com> wrote:
>
>> As you may recall, Peter was able to create JS version of DataGrid and
>> BarChart by writing the AS version and cross-compiling it to JS.
>>
>> I just checked in a new swc called FlexJSJX and changes to the build
>> scripts so those components and others can have their AS classes in that
>> project and their JS versions will be cross-compiled via the FalconJX
>> version of COMPC.
>>
>> So, if you are building out a new component for FlexJS, if the JS
>>version
>> can be completely auto-generated by FalconJX, add the component to
>> FlexJSJX, otherwise add the AS code to FlexJSUI.swc and your
>> manually-written JS code to the frameworks/js/FlexJS folder.
>>
>> Thanks,
>>
>> -Alex
>>
>>
Re: [FLEXJS] New SWC for Cross-Compiling
Posted by OmPrakash Muppirala <bi...@gmail.com>.
Dont we need this swc when building apps with FlexJS? For example, the
DataGridExample at flex-asjs\examples\DataGridExample does not work now
because it cannot find the basic:DataGrid component implementation.
I looked inside the FlexJS sdk installed via the new installer. There is
no FlexJSJX.swc under frameworks/as/libs. Is this intentional?
Thanks,
Om
On Thu, Jan 23, 2014 at 11:18 AM, Alex Harui <ah...@adobe.com> wrote:
> As you may recall, Peter was able to create JS version of DataGrid and
> BarChart by writing the AS version and cross-compiling it to JS.
>
> I just checked in a new swc called FlexJSJX and changes to the build
> scripts so those components and others can have their AS classes in that
> project and their JS versions will be cross-compiled via the FalconJX
> version of COMPC.
>
> So, if you are building out a new component for FlexJS, if the JS version
> can be completely auto-generated by FalconJX, add the component to
> FlexJSJX, otherwise add the AS code to FlexJSUI.swc and your
> manually-written JS code to the frameworks/js/FlexJS folder.
>
> Thanks,
>
> -Alex
>
>