# How to NOT show "true" while loading xml

**URL:** https://forum.kirupa.com/t/how-to-not-show-true-while-loading-xml/185497
**Category:** flash
**Created:** [April 13, 2006, 6:32pm UTC](https://forum.kirupa.com/t/how-to-not-show-true-while-loading-xml/185497 "2006-04-13T18:32:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Rob\_Hed](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@Rob\_Hed](https://forum.kirupa.com/u/Rob_Hed)
#### Post date: [April 13, 2006, 6:32pm UTC](https://forum.kirupa.com/t/how-to-not-show-true-while-loading-xml/185497/1 "2006-04-13T18:32:02Z")

</div>

```auto
function loadXML(loaded) {
	if (loaded) {
		xmlNode = this.firstChild;
		Title = [];
		XMLSection = [];
		total = xmlNode.childNodes.length;
		for (i=0; i<total; i++) {
			Title* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
			XMLSection* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
		}
		
		showtitles();
	} else {
		trace( "file not loaded!");
	}
}

```

the function loadXML(loaded) is equal to true (which is good), but a sec before the text is displayed, it shows the word “true” in the text boxes. Doesn’t look nice. How do you make it so that “true” doesn’t display in the dynamic text boxes?

Don’t know what I’m talking about?[http://www.presidentialprayerteam.net/prayerroom/](http://www.presidentialprayerteam.net/prayerroom/)  
Go to Living Room  
Click on bookshelf, then book2, then select chapter.  
Click Menu  
Repeat

---

<div class="post-metadata">

### Author: ![s\_allen40](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@s\_allen40](https://forum.kirupa.com/u/s_allen40)
#### Post date: [April 13, 2006, 8:42pm UTC](https://forum.kirupa.com/t/how-to-not-show-true-while-loading-xml/185497/2 "2006-04-13T20:42:01Z")

</div>

I only saw it flash on screen for a second. These are “hack” work arounds but what if you change the text color to match the background or move it off stage? I don’t know if you are using the same text box for the part that says true and then loading the other text in ?  
Hope that made sense.

---

<div class="post-metadata">

### Author: ![Rob\_Hed](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@Rob\_Hed](https://forum.kirupa.com/u/Rob_Hed)
#### Post date: [April 13, 2006, 8:45pm UTC](https://forum.kirupa.com/t/how-to-not-show-true-while-loading-xml/185497/3 "2006-04-13T20:45:22Z")

</div>

> [@s\_allen40](#):
>
> I only saw it flash on screen for a second. These are “hack” work arounds but what if you change the text color to match the background or move it off stage? I don’t know if you are using the same text box for the part that says true and then loading the other text in ?  
> Hope that made sense.

I can’t do that, its the same text box shows the text.  
Thanks anyways

---

<div class="post-metadata">

### Author: ![Stratification](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@Stratification](https://forum.kirupa.com/u/Stratification)
#### Post date: [April 13, 2006, 9:05pm UTC](https://forum.kirupa.com/t/how-to-not-show-true-while-loading-xml/185497/4 "2006-04-13T21:05:56Z")

</div>

You just need to figure out where “true” is being assigned from. That’s not a default behavior by any means.

---

<div class="post-metadata">

### Author: ![Rob\_Hed](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@Rob\_Hed](https://forum.kirupa.com/u/Rob_Hed)
#### Post date: [April 13, 2006, 9:48pm UTC](https://forum.kirupa.com/t/how-to-not-show-true-while-loading-xml/185497/5 "2006-04-13T21:48:41Z")

</div>

> [@Stratification](#):
>
> You just need to figure out where “true” is being assigned from. That’s not a default behavior by any means.

bContent.htmlText = true;

This was the problem. I am not sure why this appears in the texbox while loading but it did. thanks
