package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var doc:XML = <grandparent><parent><child></child></parent></grandparent>; trace(doc); var kid:XML = doc.parent.child[0]; trace(kid); var grandparent:XML = kid.parent().parent( ); trace(grandparent); } }}
Name (required)
email (will not be published) (required)
Website