Hi, Kristee.
There is three mistake:
1st) You're duplicating the "loader" and "request" variables at
// load text
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest("lorem.txt");
loader.load(request);
loader.addEventListener(Event.COMPLETE, loadcomplete);
function loadcomplete(event:Event) {
// move loaded text to text field
myTxt.text = loader.data;
// Set myTxt as target for scroll bar.
mySb.scrollTarget = myTxt;
}
You need a different variable name, so, change it to "textLoader" and "textRequest", for example, in all the 6 occurrences.
2nd) The correct variable name is "dataXML", not "teamXML".
var myDP:DataProvider = new DataProvider(teamXML);
3rd) In your XML, when closing the root node <data>, you misstyped it to </date>.
I hope this help.
Regards,
CaioToOn!