You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Starting with FlexJS version 0.7.0, XML and E4X is supported. This includes XML literals and most E4X expressions. Some advanced filter expressions might not work, but simple ones should.

The primary thing to keep in mind when using XML in FlexJS is that the type must be declared. For the compiler to convert ActionScript XML types into regular javascript, it must know that it's dealing with XML and not some arbitrary object.

To best handle this, xml types should always be declared as typed variables. Even casting is not always guaranteed to work.

This said, if you do encounter a case where XML, E4X or filter expressions are not handled correctly, please create a JIRA with a test case.

  • No labels