insertChildBefore()
There is an error in CS3 help docs regarding insertChildBefore().
var xml:XML =
Menu
item burger /item
item soda /item
Menu
xml.insertChildBefore(xml.bar[0], saleItem fries /saleItem );
trace(xml);
xml.bar[0] would actually return undefined and trace(xml) would not output as Help Docs state.
What should be in place is xml.item[0]