Tuesday, 5 April 2011

Flash AS3: elegant XML parsing

given the XML fragment

a great way to extract the links is to use the for each loop:

for each (var link:XML in xmlSource.LoaderMax.LinksSet1..Link) {
trace(link.@link);
}

No comments:

Post a Comment