# Question about text

**URL:** <https://forum.kirupa.com/t/question-about-text/261671>\
**Category:** Uncategorized\
**Created:** [May 29, 2008, 6:07pm UTC](https://forum.kirupa.com/t/question-about-text/261671 "2008-05-29T18:07:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kerning](https://avatars.discourse-cdn.com/v4/letter/k/b9bd4f/32.png) [@kerning](https://forum.kirupa.com/u/kerning)\
**Post date:** [May 29, 2008, 6:07pm UTC](https://forum.kirupa.com/t/question-about-text/261671/1 "2008-05-29T18:07:39Z")

</div>

i have a question about text in a slideshow. i know how to make a basic photo slideshow with external images. but now what i want to do is add 4-5 paragraphs of text next to each photo (with possible scrolling). the text will be different on each photo. how can i do this? i’m so confused 🙂

thanks in advance!

---

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [May 29, 2008, 7:12pm UTC](https://forum.kirupa.com/t/question-about-text/261671/2 "2008-05-29T19:12:11Z")

</div>

if you are loading images from xml then … in the xml file itself create sibling nodes for each image node with the text informations you want.

while parsing do like this…

function onXMLLoaded(success:Boolean)  
{  
if (success)  
{  
var TOTAL\_ITEMS:Number = DATAML.firstChild.childNodes.length;

```
		for (var i:Number = 0; i &lt; TOTAL_ITEMS; i++)
		{
			var ptr:XMLNode = DATAML.firstChild.childNodes*;
			var slide:Object = new Object();
			slide.id = ptr.childNodes[0].firstChild;
			slide.description = ptr.childNodes[1].firstChild;
			slide.icon = String(ptr.childNodes[2].firstChild);
			slide.big = String(ptr.childNodes[3].firstChild);
			
			RECORD_STORE.push(slide); // RECORD_STORE is an array
		}
		
	}
}

```

so when you load image from RECORD\_STORE[0].icon  
you will find the description text at RECORD\_STORE[0].description

🙂 try it out
