On 11/29/16, 6:52 AM, "Harbs" <harbs.li...@gmail.com> wrote:

>I just tried making an mxml component based off js:List in FlexJS and it
>doesn’t seem to work.
>
>I get an error when the js code tries to execute:
>
>I searched the asjs files for this function and it looks like only
>components which implement IMXMLDocument have this function. List,
>ListBase and UIBase all do not seem to implement this. Is this an
>oversight, am I missing something, or what?

Because of pay-as-you-go, the controls do not carry the overhead of being
MXML base classes.  Also, because we don't want the compiler to be tied to
a specific framework/lifecycle, we haven't taught Falcon to generate
FlexJS-specific code that could theoretically wrap any component and make
it MXML-capable.  So for now at least, you will have to make MXML-capable
subclasses if you want to use controls as the top tag in an MXML file.  We
might want to do the same for Container.


I think you can follow the example of MXMLBeadView (which extends
ContainerView which extends BeadViewBase).

-Alex

Reply via email to