# Evt.target.data what does this mean?

**URL:** <https://forum.kirupa.com/t/evt-target-data-what-does-this-mean/258033>\
**Category:** Uncategorized\
**Created:** [April 19, 2008, 10:41pm UTC](https://forum.kirupa.com/t/evt-target-data-what-does-this-mean/258033 "2008-04-19T22:41:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![welshman](https://avatars.discourse-cdn.com/v4/letter/w/b782af/32.png) [@welshman](https://forum.kirupa.com/u/welshman)\
**Post date:** [April 19, 2008, 10:41pm UTC](https://forum.kirupa.com/t/evt-target-data-what-does-this-mean/258033/1 "2008-04-19T22:41:00Z")

</div>

Hi,

I’m just finishing a book on AS3 and have come across this piece of code ‘ **evt.target.data** ’. Can anyone tell me what it does as it doe not explain in the book. The tutorial is loading in external HTML text and CSS Stylesheets, i understand everything except this…Here is the code, there is more code in the tutorial but im not sure how relevant it is to this post…

Thanks…

```auto
private function onLoadCSS(evt:Event):void {
            _css = new StyleSheet();
            _css.parseCSS( **evt.target.data** );
            _htmlFile = new URLLoader;
            _htmlFile.addEventListener(Event.COMPLETE, onLoadHTML, false, 0, true);
            _htmlFile.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler, false, 0, true);
            _htmlFile.load(new URLRequest("demo.html"));
        }
        
        private function onLoadHTML(evt:Event):void {
            _html = **evt.target.data** ;
            initTextField();
        }

```
