# HTML into Dynamic Text Field in AS3

**URL:** <https://forum.kirupa.com/t/html-into-dynamic-text-field-in-as3/291448>\
**Category:** Uncategorized\
**Created:** [June 30, 2009, 1:21am UTC](https://forum.kirupa.com/t/html-into-dynamic-text-field-in-as3/291448 "2009-06-30T01:21:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoyle\_billy](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@hoyle\_billy](https://forum.kirupa.com/u/hoyle_billy)\
**Post date:** [June 30, 2009, 1:21am UTC](https://forum.kirupa.com/t/html-into-dynamic-text-field-in-as3/291448/1 "2009-06-30T01:21:24Z")

</div>

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;  
}  
myLoadVars.load(“myHTML.html”);
