FlashPlaya

December 23, 2008

insertChildBefore()

Filed under: Errata — Tags: — iBen @ 8:02 pm

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]

Powered by WordPress