# Simple problem

**URL:** <https://forum.kirupa.com/t/simple-problem/205940>\
**Category:** Uncategorized\
**Created:** [November 3, 2006, 11:30am UTC](https://forum.kirupa.com/t/simple-problem/205940 "2006-11-03T11:30:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennymartensson](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bennymartensson/32/1317_2.png) [@bennymartensson](https://forum.kirupa.com/u/bennymartensson)\
**Post date:** [November 3, 2006, 11:30am UTC](https://forum.kirupa.com/t/simple-problem/205940/1 "2006-11-03T11:30:31Z")

</div>

Just wanna know how to be able to load an external textfile with this code?

```auto

var cssStyles:TextField.StyleSheet = new TextField.StyleSheet ();
cssStyles.load ("styles/styles.css");
cssStyles.onLoad = function (success) {
	if (success) {
		adress_txt.styleSheet = cssStyles;
		adress_txt.text = "...my .txt file...";
	} else {
		adress_txt.text = "Text not loaded.";
	}
}

```
