In this post, I’ll cover the transfer of data stored in an external XML file into a Flash Actionscript 3 application. In Actionscript 3, handling XML files has been vastly improved – and simplified – with two new classes: the XML and the XMLList classes.
Entries Tagged as 'array'
Using Arrays in Actionscript 3: Part 2 – Associative Arrays
November 7th, 2009 · 2 Comments · Tutorials
Associative arrays are the more sophisticated sibling of integer-indexed arrays. Associative arrays, in addition to having integer-indexed elements, also have named data defined within each indexed element. So that the first element, at index=0, might contain data such as firstname: “Joseph”, lastname: “Jones” and employeeID: 345421. Associative arrays serve as extremely [...]
Tags:array·associative·data·object·tutorial
Using Arrays in Actionscript 3: Part 1 – Integer-Indexed Arrays
November 5th, 2009 · 3 Comments · Tutorials
An array in Actionscript 3 – as well as in other programming languages – is a named collection of elements or variables with each element identified by a specific index. For example, if we have an array named ‘languages’ with elements ‘english’, ‘french’, ’spanish’, ‘russian’ and ‘chinese’ then the value at 0 index – [...]
Tags:actionscript·actionscript 3·array·flat·integer-indexed·tutorial