3/14/2010 11:50:02 AM
Title:
Whats e4x in flex
What is e4x and why to load data in e4x while loading xml into flash?
3/14/2010 12:33:13 PM
E4X ( ECMAScript ). E4X provides a collection of classes to work with XML data.XML loaded by using E4X are much easier to work with. It saves a lot of coding time. Following are the classes included in E4x:
XML
XMLList
QName
Namespace
Example :
var xmlE4String:String = '<root><fruit name="Apple" price="50"><color type="Red"/></fruit></root>';
var xml:XML = XML(xmlE4String);
trace(xml.fruit[0].color.@type);
Red