FMX: looping thru a pipe-delimited list

Howdy - I’m working with an xml file that describes buildings. Each of the buildings has a coordinates node that lists out the “x,y” points that describe the “footprint” of the building on a siteplan in a pipe ("|") delimited list.

[AS]<coordinates>232,275|249,268|251,275|257,271</coordinates>[/AS]

I’ve been using ColdFusion for too long and relying on the cfloop tag which takes a delimiter attribute… Can anyone show me a quick example of how to do this in ActionScript?

Thanks in advance!