Question about text

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 :slight_smile:

thanks in advance!

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 < 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

:slight_smile: try it out