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" <bigosma...@gmail.com> wrote: >On Tue, Jan 28, 2014 at 11:08 AM, Alex Harui <aha...@adobe.com> wrote: > >> >> >> On 1/28/14 11:01 AM, "OmPrakash Muppirala" <bigosma...@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 <aha...@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 >> >> >> >> >> >>