XML in flex

XML in flex

Hi...

just tell me about
What is e4X and XML in flex?

Thanks

View Answers

October 19, 2010 at 3:44 PM

Ans:

E4X means "ECMAScript For XML Using E4X, we can develop code with XML data faster than was possible with previous programming techniques. E4X provides a set of classes and functionality for working with XML data. ActionScript 3.0 includes the following E4X classes: XML, XMLList, QName, and Namespace.

Here is an example of manipulating data with E4X:

var myXML:XML =
<order>
<item id="1">
<name>colddrink</name>
<price>12</price>
< /item>
<item id="2">
<name>burger</name>
<price>10</price>
< /item>
< /order>
trace (myXML.item[0].menuName); // Output: colddrink
trace (myXML.item.(@id==2).menuName); // Output: burger
trace (myXML.item.(menuName=="burger").price); // Output: 10









Related Tutorials/Questions & Answers:
XML in flex
XML in flex  Hi... just tell me about What is e4X and XML in flex? Thanks
doubt in combobox in flex - XML
in flex which is a combination of mxml and actioscript . In my project i has.... http://www.roseindia.net/flex/flex-itemdetail.shtml Wishing for your better future in flex programming line. Have a good time
Advertisements
doubt in connecting to mysql in flex - XML
doubt in connecting to mysql in flex  The ?Create application from database? is a Flex 3 feature that enable you to create simple applications in few... on the Flex Navigation Panel -> new -> Flex Project;Choose the project name
doubt in connecting mysql in flex - XML
doubt in connecting mysql in flex  The ?Create application from database? is a Flex 3 feature that enable you to create simple applications in few... on the Flex Navigation Panel -> new -> Flex Project;Choose the project name
pls provide steps to connect mysql in flex - XML
pls provide steps to connect mysql in flex   hi ,PLS SUGGEST ME I... THE FUNCTIONS.PHP THERE .OR ANY OTHERWAY .HOW FLEX CONNECT WITH WAMP .IF SO PLS...;Hi friend, For read more information on flex visit to : http
prblm in flex with php server technology - XML
prblm in flex with php server technology  hi, pls help me when i run in normal flex project it displaying wat i have declared in mxml... flex project .but when i run its not displaying images.other than
pls provide steps to connect mysql database in flex - XML
pls provide steps to connect mysql database in flex  hi,i am new to flex and doing project. i have doubt in how to connect MYSQL database in flex .pls provide the steps . i would be really thankful 2 u. i am loooking
pls provide steps to connect mysql database in flex - XML
for ur reply..  Hi friend, For read more information on flex visit to : http://www.roseindia.net/flex/ Thanks  Hi friend, I am sending simple code of flex with php. Please implement following code according
pls provide common path to set image in flex - XML
the coding in mxml to set common path of image in flex
Java and Flex
are the similarities between java and flex? Thanks  Ans:Java and flex both used as client application. The similarities between java and flex are following: 1. Both have pakages 2. OOPs concept 3. support XMl 4. support ArrayCollection
FLex Tree
FLex Tree  I want to change the node name in flex tree my code is: Company:XML = <Element name ="Element" code="400"> <{newChild} name ={newChild1} code="400"/> ; where comapny is dataprovide for tree. I want
Flex Looping
Flex Looping  I need example for flex looping mechanisam example
Flex - Framework
Flex  database conectivity in flex
AMF in FLex
between database and flex application using RPC. AMF message contains a body which holds the error or response. AMF works over HTTP like XMl
Flex Combobox
Flex Combobox  flex combobox with database as dataprovider   You can visit the following link for detailed tutorial on the topic. May this will be helpful to you. http://www.roseindia.net/flex/flex-combo-box.shtml
CSS in flex
dynamically loading of CSS file is not supported in flex. you can compile... the StyleManager.loadStyleDeclarations() method in your Flex application. This method loads the CSS-based SWF file into your application. When this method executes, Flex loads the new
Flex event
Flex event  Hi.... Please tell me about How to create your own event in flex? Thanks
Flex basic
Flex basic  Hi...... please just tell me about Can we run Flex applications in MAC? Thanks
Flex and Java
Flex and Java  hi..... Please give similiarities between Java and Flex. Thanks
Flex and Java
Flex and Java  Hi...... Give the name of Collection which can be mapped to java and Flex and vice-versa. please give the name of all collections which is used in flex and java.. Thanks
Flex and Java
Flex and Java  Hi.... What are the config files that are used to connect Java and Flex applications? Please provide the solution of this prob so i connect java and flex.... Thanks
Flex Combobox
Flex Combobox  flex combobox with database as dataprovider    <?xml version = '1.0' encoding = 'utf-8'?> <mx:Application xmlns:mx... on the topic. May this will be helpful to you. http://www.roseindia.net/flex
Repeater in flex
application <?xml version="1.0" encoding="utf-8"?>...="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <fx:Declarations> <s:ArrayList id="
Flex as a Service
Flex as a Service  Hi....... just tell me about How do I run Flex as a service? please give me an example if possible Thanks  Ans: Flex is not a server. It is the pert of your web application. you can use
Flex Updates
Flex Updates  Sir, first Thanks For Good Resource for Every One! i am New to Flex... but,in Current Updates Tell Us Flex Becomes To down!(Sorry To say).. May I know Future groom & Advantage of Flex Over Other Web
Flex basic
Flex basic  Hi.... I want to know Do we need any plugins to run Flex applications? please give the ans ASAP....... Thanks
Flex basic
Flex basic  Hi.......... I want to know about What is localToGlobal and globalToLocal in flex? please give me ans ASAP..... Thanks
Flex application
Flex application  Hi..... What kind of applications you can create from flex? please give the name of these applications....... Thanks
Flex basic
Flex basic  Hi.... can you tell me about Is Flex OS specific or operating system independent? please give the description about it....... Thanks
Flex difference
Flex difference  Hi.... please tell me about What is the difference between Flex 2.0 and Flex 3.0? Thanks  Ans: There are some advantages of Flex3.0 over Flex 2.0 they are following: 1. Faster compilation time
Adding a flex table in another flex table column
Adding a flex table in another flex table column  how to add a flex table in another flex table column
Flex basic
Flex basic  Hi.... Can flex application communicate with each other on the client? please give me the answer ASAP.....ADS_TO_REPLACE_1 Thanks   Ans: See the LocalConnection API In the flex documentation. ADS
Flex with JSP
Flex with JSP  i want to draw chart in jsp page using flex. how can i do that? any solution??   Flex charts You can visit the following links: http://www.roseindia.net/tutorial/flex/flex4/components/charteffect.html
Flex basic
Flex basic  Hi...... Please tell me about What are non-visual components in flex? What class do they extend? please give the name of these components....... Thanks
Metadata in flex
Metadata in flex  Hi......... please tell me about the meta data in flex. Thanks
Flex Managers
Flex Managers  Hi... Please tell me about How to override Managers? give me an example for that.... Thanks
Image in Flex
Image in Flex  Hi..... Can you manipulate images using Flex programs? please give me the example....... Thanks
Flex event
Flex event  hi...... How to capture and event if the component is disabled? please give an example..... Thanks in advance
Mask in Flex
Mask in Flex  Hi...... Is it possible to create 'gradient mask' in flex? please give me the ans ASAP..... Thanks in advance
Adobe flex
Adobe flex  Hi... please give me the description about What is Adobe Flex? Thanks
Advantage of Flex
are the Advantages and Disadvantages of flex? Thanks   Advantages: Flex IDE is very capable. Flex output is a movie and images is the major part of this movie. you can not directly download the flex running file. When we right click
Flex event
Flex event  Hi.... please tell me about How does Flex event...: In the capturing phase, Flex examines an event target?s ancestors in the display list to see...: In the targeting phase, Flex invokes the event dispatcher?s listeners. No other nodes
XML
XML  How i remove a tag from xml and update it in my xml
Effect in flex
it to the trigger. For Example: <?xml version="1.0" encoding="utf-8...; xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
Image in Flex
Image in Flex  Hi...... please give me the ans What type of images can be loaded in flex application? please give the name of images ........ Thanks
Flex basic
Flex basic  Hi........ I want to know about What will happen when you removeChild() and addChild()? please give me the ans ASAP....... Thanks
Style in flex
Style in flex  Hi...... I want to know about What is the difference between style and a property in flex? please give me an example...... Thanks
Image in Flex
Image in Flex  Hi..... List out the advantages and disadvantages of using Raster vs Vector images with flex. please tell me about this Thanks
Output of flex
Output of flex  hi....... please provide the name of the output file. What is the output of flex applications? please rply ASAP........ Thanks
FLex basic
FLex basic  Hi..... I want to know about What is the difference between DisplayObjectContainer and DisplayObject? please give an ans ASAP..... Thanks

Ads