On 7/22/15, 1:49 PM, "Harbs" <harbs.li...@gmail.com> wrote:
> >On Jul 22, 2015, at 11:44 PM, Alex Harui <aha...@adobe.com> wrote: > >> >> >> On 7/22/15, 1:36 PM, "Harbs" <harbs.li...@gmail.com> wrote: >> >>> Makes sense. >>> >>> From my perspective, here’s what I’m looking to do: >>> >>> I have a rather large application which has a pretty clean divide >>>between >>> business logic and view. >>> >>> 1) I’m looking to adapt the business logic part so it’ll cross-compile >>> into Javascript, pretty much as-is. I expect to have to work on some of >>> the capabilities and classes to make them cross-compilable. XML >>> processing is one example. >> >> Is there no way to convert to using JSON instead of XML? FWIW, I’ve >> pondered the notion of a servlet that acts like a proxy server, grabs >>XML >> from the actual server and converts it to JSON. > >The problem is I need to consume the XML and then push it back out. I’ve >been thinking about the problem a lot and I think some normal classes >that are reminiscent of XML and XMLList are the cleanest way to go. I’m >probably going to punt on some of the stickier aspects of E4X, but I >think I can get pretty far. In my testing, XML is an order of magnitude slower and fatter than AS classes. I’m not expecting it to be any better on the JS side. So, depending on how much XML manipulation your app does, it might pay to convert the XML to data classes before manipulation and convert back on the way to the server, or have a proxy do some of the work for you. > >> >>> 2) I’d like to port the view into ActionScript which would compile to >>> Easel.js-compatible Javascript. My understanding is that folks have >>> already been working on the Easel.js problem. >> >> I don’t know that we have Easel libraries right now, but I could have >> missed someone working on it. And, of course, you are welcome to take >>on >> creating Easel wrappers. > >If need be, I’m prepared to work on that. (But I guess I’ll need to learn >how to build those externs…) ;-) Well, if there is an externs file for Easel, we can create the SWCs pretty easily and you won’t have to know learn about it. -Alex