KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I convert the following XMLList to an Array of Strings without using a loop? <labels> <label>All</label> <label>your</label> <label>base</label> <label>are</label> <label>belong</label> <label>to</label> <label>us.</label> </labels> I want this result: ["All","your","base","are","belong","to","us."] Right now, I am doing the following: var labelsArray:Array /* of String */ = []; for each (var labelText:String in labels.label) { labelsArray.push(labelText); } I was wondering if there is a simpler way to do this in ActionScript 3.0
Tags (comma-separated)
Save Edits
Cancel