How can I convert this to actionscript 3.0

Hi,

Can someone help me to convert this actionscript 2.0 code to actionscript 3.0?

Hi,
Can someone help me to convert this actionscript 2.0 code to actionscript 3.0?

Or if someone knows of a similar actionscript 3.0 code that loads HTML and at the same time it uses a CSS file to format the text and that can be used to format different text Fields, please let me know.

Thanks

var styles = new TextField.StyleSheet();
styles.load("cssFiles/eventsCSS.css");
theText1.html = true;
theText1.styleSheet = styles;
var lv:LoadVars = new LoadVars();
lv.onData = function(content) {
  theText1.text = content;
}
lv.load("events/event1.html");