flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FLEXJS] POC MXML "Live" Editing
Date Fri, 13 May 2016 06:37:06 GMT

On 5/12/16, 11:18 PM, "jude" <flexcapacitor@gmail.com> wrote:

>Is the MXMLLiveEditAgent.mxml the only place those methods are from? I
>thought I read somewhere that you copied those methods from somewhere
>I'm trying to find the class that those methods were originally in to
>how to parse an XML tree and then track it's changes as if a user was
>updating it constantly in an editor. I looked at the MXMLDataInterpreter
>but that looks like it's for importing.
>OK, I think here is where I got the idea. The comments are from
>// we go deep first because that's how the Falcon compiler
>// generates IDs for tags that don't have id attributes set.
>I'm guessing that the methods are from or inspired from a class in Falcon?
>That class or code is what I'm trying to find and learn from.

Well, that's how we match up the IDs.  We need to know how the compiler
generates the array of data that represents the MXML file.  But MXML is
supposed to be valid XML, so there is no need for a custom parser, at
least for the POC.  Maybe you will need more smarts later.  You can look
at the Falcon MXML parser if you want, but I'm pretty sure I didn't borrow
code from there.


View raw message