Well, they aren't arrays - we're talking e4x and XML
var xml:XML = <data><step><name>N1</name><text>T1</text></step><step><name>N2</name><text>T2</text></st ep></data>;
for each (var step:XML in xml.step)
Alert.show( 'Name: ' + step.name + ', Text: ' + step.text );
1 person found this helpful
BTW, using Alert.show() like this is a good way to confuse yourself, because all the Alerts will stack on top of each other, with the last one on top. Alert.show() puts up the Alert immediately and returns; it doesn't wait for the user to dismiss it before returning, because this would stop the SWF from playing. I recommend using trace() instead of Alert.show(). Output from trace() appears in Flash Builder's Console panel.
Adobe Flex SDK Team
I see what you mean. Thanks for the clarification.