stop ();
System.useCodepage = true;
miniaturas.setMask(mascara);
foto._visible = false;
foto._width = 130;
foto._height = 120;
tip._alpha = 0;
tip.startDrag();
tip._x = _xmouse;
tip._y = _ymouse;
var AlbumXML = "albuns.xml";
var Album = new XML();
Album.ignoreWhite = true;
Album.onLoad = function (sucesso)
{
if (sucesso)
{
titulo = Album.firstChild.childNodes[_root.id].childNodes[0].firstChild.nodeValue;
dia = Album.firstChild.childNodes[_root.id].childNodes[1].firstChild.nodeValue;
if (!dia)
{
dia = "";
} // end if
local = Album.firstChild.childNodes[_root.id].childNodes[2].firstChild.nodeValue;
cidade = Album.firstChild.childNodes[_root.id].childNodes[3].firstChild.nodeValue;
} // end if
};
Album.load(AlbumXML);
var FotosXML = _root.albun + ".xml";
var Fotos = new XML();
Fotos.ignoreWhite = true;
Fotos.onLoad = function (sucesso)
{
if (sucesso)
{
imagens = "";
quant = Fotos.firstChild.childNodes.length;
for (i = 0; i < quant; i++)
{
imagens = imagens + (Fotos.firstChild.childNodes[i].firstChild.nodeValue + ",");
} // end of for
imagem = new Array();
imagem = imagens.split(",");
pag._visible = false;
page = 1;
cols = 4;
total = 16;
pages = Math.round(quant / total);
espaco = Math.floor((570 - pages * 24) / 2);
for (i = 0; i < pages; i++)
{
duplicateMovieClip(pag, "pag" + i, i);
pagina = "pag" + i;
eval(pagina).num = i;
eval(pagina)._x = i * 24 + espaco + 16;
if (i < 9)
{
eval(pagina).page = "0" + int(i + 1);
continue;
} // end if
eval(pagina).page = i + 1;
} // end of for
pag0.onLoad = function ()
{
mx.behaviors.DepthControl.bringToFront(page_on);
page_on._x = this._x;
this.enabled = false;
};
miniaturas.criar();
} // end if
};
Fotos.load(FotosXML); Posta a estrutura do seu xml também.