I'm kind of confused again...

I thought the goal here was to get data from XML, to be used in HTML. Why are we trying to send $menuLabels back into Flash? There's little point in having PHP do the parsing to send the resulting data to Flash...