HTML into Dynamic Text Field in AS3

Hello, I’m trying to load some html into a dynamic text field. All the hints I’ve found online are in AS2 and use the LoadVars function which is no longer a part of AS3. Can someone help me convert this to AS3?

myLoadVars = new LoadVars();
myLoadVars.onLoad = function() {
// the data is loaded in the myLoadVars object as a property of the object
myText.htmlText = myLoadVars.myHTMLdata;