Loading an RSS feed

I found this source code for loading an RSS feed into flash but it only shows in the output window and i’m having trouble directing it to a dynamic text field. Any help is appreciated.

[LIST=1]
[][COLOR=#000000][FONT=Courier New][COLOR=#808080]// create a new XML object*[/COLOR][/FONT][/COLOR]
[][COLOR=#000000][FONT=Courier New][COLOR=#000000]var[/COLOR] sports:[COLOR=#003366]XML[/COLOR] = [COLOR=#000000]new[/COLOR] [COLOR=#003366]XML[/COLOR][COLOR=#008800]([/COLOR][COLOR=#008800])[/COLOR];[/FONT][/COLOR]
[
][COLOR=#000000][FONT=Courier New] [/FONT][/COLOR]
[][COLOR=#000000][FONT=Courier New][COLOR=#808080]// set the ignoreWhite property to true (default value is false)[/COLOR][/FONT][/COLOR]
[
][COLOR=#000000][FONT=Courier New]sports.[COLOR=#006600]ignoreWhite[/COLOR] = [COLOR=#000000]true[/COLOR];[/FONT][/COLOR]
[][COLOR=#000000][FONT=Courier New] [/FONT][/COLOR]
[
][COLOR=#000000][FONT=Courier New][COLOR=#808080]// After loading is complete, trace the XML object[/COLOR][/FONT][/COLOR]
[][COLOR=#000000][FONT=Courier New]sports.[COLOR=#006600]onLoad[/COLOR] = [COLOR=#000000]function[/COLOR][COLOR=#008800]([/COLOR]success[COLOR=#008800])[/COLOR] [COLOR=#008800]{[/COLOR][/FONT][/COLOR]
[
][COLOR=#000000][FONT=Courier New] [COLOR=#003366]trace[/COLOR][COLOR=#008800]([/COLOR]sports[COLOR=#008800])[/COLOR];[/FONT][/COLOR]
[][COLOR=#000000][FONT=Courier New][COLOR=#008800]}[/COLOR];[/FONT][/COLOR]
[
][COLOR=#000000][FONT=Courier New] [/FONT][/COLOR]
[][COLOR=#000000][FONT=Courier New][COLOR=#808080]// load the XML into the sports object*[/COLOR][/FONT][/COLOR]
[*][COLOR=#000000][FONT=Courier New]sports.[COLOR=#006600]load[/COLOR][COLOR=#008800]([/COLOR][COLOR=#FF0000]“http://rss.news.yahoo.com/rss/sports”[/COLOR][COLOR=#008800])[/COLOR]; [/FONT][/COLOR]
[/LIST]

Ian