# How can I convert this to actionscript 3.0

**URL:** <https://forum.kirupa.com/t/how-can-i-convert-this-to-actionscript-3-0/289752>\
**Category:** flash\
**Created:** [June 4, 2009, 10:10am UTC](https://forum.kirupa.com/t/how-can-i-convert-this-to-actionscript-3-0/289752 "2009-06-04T10:10:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fs\_tigre](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)\
**Post date:** [June 4, 2009, 10:10am UTC](https://forum.kirupa.com/t/how-can-i-convert-this-to-actionscript-3-0/289752/1 "2009-06-04T10:10:41Z")

</div>

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

```auto
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");

```
