Understanding E4X syntax


show more Understanding E4X syntax provides you with in-depth training on Developer. Taught by Todd Perkins as part of the ActionScript 3.0 in Flash CS3 Professional Beyond the Basics show less
please wait ...

Understanding E4X syntax

When we're working with XML in ActionScript 3.0, we're going to use something called you for E4X syntax. And E4X stands for ECMAScript for XML. What that means to you is that you have a really easy way to use XML data in Flash. At least a lot easier than the way using XML data worked in ActionScript 2.0. In this movie, I'm briefly going to show how E4X syntax looks and how it's different from XML in ActionScript 2.0.

I'm just going to open up the Actions panel on the first keyframe of this blank document. And in ActionScript 2.0, if you wanted to bring in XML data, you've to create a variable, call it something, data type which is XML, have it be new XML, and then make the XML object load something. And once you had the XML loaded in an external file, you had to store the XML in an array and use confusing syntax to navigate through the XML.

Let me show E4X syntax works. I'm just going to keep the myXML data typed to XML and I'm going to just type XML. I am ju...

Understanding E4X syntax
Video duration: 2m 5s 4h 7m Intermediate

Viewers:

Understanding E4X syntax provides you with in-depth training on Developer. Taught by Todd Perkins as part of the ActionScript 3.0 in Flash CS3 Professional Beyond the Basics

please wait ...