# Xml & Flash + jpg

**URL:** <https://forum.kirupa.com/t/xml-flash-jpg/153771>\
**Category:** flash\
**Created:** [July 4, 2005, 3:45pm UTC](https://forum.kirupa.com/t/xml-flash-jpg/153771 "2005-07-04T15:45:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabrielgm](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gabrielgm/32/1474_2.png) [@gabrielgm](https://forum.kirupa.com/u/gabrielgm)\
**Post date:** [July 4, 2005, 3:45pm UTC](https://forum.kirupa.com/t/xml-flash-jpg/153771/1 "2005-07-04T15:45:38Z")

</div>

testing with flash and XML

now i show what i have to do…

![](http://www.gatodegrandesbotas.com/blog/captura_flash.jpg)

i have loaded all text, as “tittle and description” by XML

```php
<TUTORIAL TITULO="4 HOJAS" DESCRIPCION="Amazing proyect, text model" />

```

that in flash i call like this:

1º photogram

```auto

getxmldata = new XML();
getxmldata.load("xmldata.xml");

```

3º Fotograma

```auto

if (getxmldata.loaded) {
    var p = getxmldata.firstChild;
    xmldoc = getxmldata.childNodes;
    TUTORIAL = p.nodeName;
    titulo = p.attributes.titulo;
    descripcion = p.attributes.descripcion;
    canti = p.attributes.canti;
}
stop();

```

titulo= tittle  
descripcion= description  
canti= how many in number

all most done, but i what to put in the XML, how many .jpg are in a folder, so that number it’s taken by flash, and avariable the pictures to open.

i was thinking do it like this:

```auto

aphotos = arrayphotos;
nrophoto = 0;
for(i=0;i<aphotos.length;i++)
{
nrophoto++;
loadMovie(aphotos*);
}

```

nrophoto begins in 0 and it’s going to increment.  
i have stuck now…

**some can help me??**
