# \_level question

**URL:** <https://forum.kirupa.com/t/-level-question/246293>\
**Category:** flash\
**Created:** [December 9, 2007, 6:41pm UTC](https://forum.kirupa.com/t/-level-question/246293 "2007-12-09T18:41:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![killahert](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@killahert](https://forum.kirupa.com/u/killahert)\
**Post date:** [December 9, 2007, 6:41pm UTC](https://forum.kirupa.com/t/-level-question/246293/1 "2007-12-09T18:41:27Z")

</div>

hi I have a preloader that loads external source into \_level1 but when my source loads non of the external data gets loaded like xml data, css, or text files here is an example of my preloader:

```auto

if (_level1.getBytesTotal() > 0) {
	loaded = _level1.getBytesLoaded();
	total = _level1.getBytesTotal();
	percent = Math.round((loaded / total) * 100);
	percentBar.gotoAndStop(percent);
	if (loaded == total) {
		_level1.play();
		gotoAndStop(4);
	}
}

```

and here is an example of my external css and text that should load but it doesn’t:

```auto

var format = new TextField.StyleSheet();
var path = "css.css";
about.html = true;
about.htmlText = quick;

myLoadVar = new LoadVars ();
myLoadVar.onLoad = function (success){
     if (success == true) {
          about.htmlText=this.content;
          trace(this.content);
     } else {
     
     }
}

format.onLoad = function(success) {
    if (success) {
        myLoadVar.load("about.txt");
        about.styleSheet = format;
        about.htmlText = quick;
    } else {
        about.htmlText = "Error loading CSS file!";
    }
};

format.load(path);

```

Same applies to external xml data. can anyone please see what I am doing wrong.
