jeffersonyou Postado Setembro 30, 2007 Denunciar Share Postado Setembro 30, 2007 Galera esperta,...preiso de orientação de meus brothers,....como estou aprendendo sobre galeria flash + xml,...me ajudem por favor nesse cod. abaixo:----------------------------------------------------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 = "fotos/" + _root.categoria + "/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 = "fotos/" + _root.categoria + "/xml/" + _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.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);---------------------------------------------------------------------* estou aproveitando esse cod. acima, mas preciso que meus amigos me ajudem acerta-lo,.......quero criar um arquivo em xml que oriente buscar uma foto na MESMA PASTA,......._pois da forma que está está monstrando erro,...e já tentei criar os caminhos como pede mas não consigo,....* então preciso da ajuda de vocês,...pra acionar o comando correto pra dentroda mesma pasta onde está o arquivo,.....grato pela atenção de todos, sds,JEFFErson Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 Gutto Postado Setembro 30, 2007 Denunciar Share Postado Setembro 30, 2007 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. Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 jeffersonyou Postado Outubro 1, 2007 Autor Denunciar Share Postado Outubro 1, 2007 aê brother GUTTO,.....como eu não entedo muito bem,...preciso apenas acertar esse AS,..pra direcionar pra uma pasta Fotos e albuns,...dentro da proprio pasta que está o arquivo em FLAsh,...segue o code: xml:<?xml version="1.0"?> <imagegallery x="0" y="0" w="516" h="495" bkdobk="t" bkdogradient="f" bkfillclr="0xFFFFFF" bkfillalpha="100" bkgradclr="0xFFFFFF" bkgradalpha="100" bkgradangle="70" bkdoimg="f" bkimg="" bkdobdr="t" bkbdrsolid="t" bkbdrcolor="0x000000" bkmp3="" overclick="" playspeed="100" thumbspeed="15" captionfontsize="10" captionfontcolor="0x000000" captionfontbkcolor="0xFFFFFF" captionfont="Arial" docatsonstartup="t" docplayonstartup="t" thumbhdrbkdo="f" thumbhdrbkdogradient="f" thumbhdrbkfillclr="0x000000" thumbhdrbkfillalpha="100" thumbhdrbkgradclr="0xFFFFFF" thumbhdrbkgradalpha="70" thumbhdrbkgradangle="70" thumbhdrbkdoimg="f" thumbhdrbkimg="" thumbhdrbkdobdr="t" thumbhdrbkbdrsolid="t" thumbhdrbkbdrcolor="0xFFFFFF" showbtns="t" thumbhz="t" thumbw="100" thumbh="70" thumbimgw="98" thumbimgh="68" thumbimgx="1" thumbimgy="1" thumbalpha="100" thumbspacing="5" thumbxyoffset="5" thumbfxfade="f" thumbdobdr="t" thumbbdrsolid="t" thumbhlight="t" thumbshdw="f" thumbdobk="f" thumbdogradient="f" thumbimgscale="t" thumbimgaspect="t" thumbbdrcolor="0xFFFFFF" thumbhlightclr="0xFF0000" thumbshdwclr="0x000000" thumbfillclr="0x000000" thumbgradclr="0xFFFFFF" thumbhlightwidth="2" thumbgradangle="70" > <imagedisplay x="6" y="10" w="502" h="375" bkdobk="f" bkdogradient="f" bkfillclr="0xFFFFFF" bkfillalpha="100" bkgradclr="0x808080" bkgradalpha="70" bkgradangle="70" bkdoimg="f" bkimg="" bkdobdr="t" bkbdrsolid="f" bkbdrcolor="0x000000" bkdomask="t" doclickfullsize="f" scaletofit="t" aspratio="f" loaderw="200" transition="0" > </imagedisplay> <button x="483" y="405" w="29" h="25" bkdobk="f" bkdogradient="f" bkfillclr="0xC0C0C0" bkfillalpha="100" bkgradclr="0x808080" bkgradalpha="70" bkgradangle="70" bkdoimg="f" bkimg="" bkdobdr="f" bkbdrsolid="t" bkbdrcolor="0x000000" bkdomask="t" fntx="0" fnty="0" fntalpha="100" fnttext="Search" fntsize="10" fntclr="0xFFFFFF" fntbold="f" fntitalic="f" fnt="Arial" txt="Play Slideshow" toggletxt="Pause Slideshow" action="toggleplaypause" showtext="f" toggle="t" > </button> <button x="482" y="448" w="28" h="30" bkdobk="f" bkdogradient="f" bkfillclr="0xC0C0C0" bkfillalpha="100" bkgradclr="0x808080" bkgradalpha="70" bkgradangle="70" bkdoimg="f" bkimg="" bkdobdr="f" bkbdrsolid="t" bkbdrcolor="0x000000" bkdomask="t" fntx="0" fnty="0" fntalpha="100" fnttext="Search" fntsize="10" fntclr="0xFFFFFF" fntbold="f" fntitalic="f" fnt="Arial" txt="Show Albums" toggletxt="Hide Albums" action="showcatagories" showtext="f" toggle="t" > </button> <thumbnailer x="6" y="404" w="474" h="80" myname="thumbs1" image1="myalbum/shutterstock_-_vectors_091_s.jpg" bigimage1="myalbum/shutterstock_-_vectors_091.jpg" imagecaption1="Enter your image caption here" image2="myalbum/shutterstock_880513_s.jpg" bigimage2="myalbum/shutterstock_880513.jpg" image3="myalbum/shutterstock_1204559_s.jpg" bigimage3="myalbum/shutterstock_1204559.jpg" image4="myalbum/shutterstock_1567804_s.jpg" bigimage4="myalbum/shutterstock_1567804.jpg" image5="myalbum/shutterstock_-_vectors_002_copia_s.jpg" bigimage5="myalbum/shutterstock_-_vectors_002_copia.jpg" image6="myalbum/shutterstock_-_vectors_008_copia_s.jpg" bigimage6="myalbum/shutterstock_-_vectors_008_copia.jpg" image7="myalbum/shutterstock_-_vectors_010_s.jpg" bigimage7="myalbum/shutterstock_-_vectors_010.jpg" image8="myalbum/shutterstock_-_vectors_017_copia_s.jpg" bigimage8="myalbum/shutterstock_-_vectors_017_copia.jpg" image9="myalbum/shutterstock_-_vectors_021_s.jpg" bigimage9="myalbum/shutterstock_-_vectors_021.jpg" image10="myalbum/shutterstock_-_vectors_022_s.jpg" bigimage10="myalbum/shutterstock_-_vectors_022.jpg" image11="myalbum/shutterstock_-_vectors_026_s.jpg" bigimage11="myalbum/shutterstock_-_vectors_026.jpg" image12="myalbum/shutterstock_-_vectors_027_copia_s.jpg" bigimage12="myalbum/shutterstock_-_vectors_027_copia.jpg" image13="myalbum/shutterstock_-_vectors_028_copia_s.jpg" bigimage13="myalbum/shutterstock_-_vectors_028_copia.jpg" image14="myalbum/shutterstock_-_vectors_046_s.jpg" bigimage14="myalbum/shutterstock_-_vectors_046.jpg" image15="myalbum/shutterstock_-_vectors_059_s.jpg" bigimage15="myalbum/shutterstock_-_vectors_059.jpg" > </thumbnailer> <thumbnailer x="6" y="404" w="474" h="80" myname="thumbs2" image1="myalbum/shutterstock_-_vectors_149_s.jpg" bigimage1="myalbum/shutterstock_-_vectors_149.jpg" image2="myalbum/shutterstock_-_vectors_112_s.jpg" bigimage2="myalbum/shutterstock_-_vectors_112.jpg" image3="myalbum/shutterstock_-_vectors_129_s.jpg" bigimage3="myalbum/shutterstock_-_vectors_129.jpg" image4="myalbum/shutterstock_-_vectors_133_s.jpg" bigimage4="myalbum/shutterstock_-_vectors_133.jpg" image5="myalbum/shutterstock_-_vectors_134_s.jpg" bigimage5="myalbum/shutterstock_-_vectors_134.jpg" image6="myalbum/shutterstock_-_vectors_135_s.jpg" bigimage6="myalbum/shutterstock_-_vectors_135.jpg" image7="myalbum/shutterstock_-_vectors_136_s.jpg" bigimage7="myalbum/shutterstock_-_vectors_136.jpg" image8="myalbum/shutterstock_-_vectors_137_s.jpg" bigimage8="myalbum/shutterstock_-_vectors_137.jpg" image9="myalbum/shutterstock_-_vectors_139_s.jpg" bigimage9="myalbum/shutterstock_-_vectors_139.jpg" image10="myalbum/shutterstock_-_vectors_140_s.jpg" bigimage10="myalbum/shutterstock_-_vectors_140.jpg" image11="myalbum/shutterstock_-_vectors_141_copia_s.jpg" bigimage11="myalbum/shutterstock_-_vectors_141_copia.jpg" image12="myalbum/shutterstock_-_vectors_142_s.jpg" bigimage12="myalbum/shutterstock_-_vectors_142.jpg" image13="myalbum/shutterstock_-_vectors_143_s.jpg" bigimage13="myalbum/shutterstock_-_vectors_143.jpg" image14="myalbum/shutterstock_-_vectors_144_s.jpg" bigimage14="myalbum/shutterstock_-_vectors_144.jpg" image15="myalbum/shutterstock_-_vectors_145_s.jpg" bigimage15="myalbum/shutterstock_-_vectors_145.jpg" image16="myalbum/shutterstock_-_vectors_146_s.jpg" bigimage16="myalbum/shutterstock_-_vectors_146.jpg" > </thumbnailer> <thumbnailer x="6" y="404" w="474" h="80" myname="thumbs3" image1="myalbum/shutterstock_-_vectors_170_s.jpg" bigimage1="myalbum/shutterstock_-_vectors_170.jpg" image2="myalbum/shutterstock_-_vectors_150_s.jpg" bigimage2="myalbum/shutterstock_-_vectors_150.jpg" image3="myalbum/shutterstock_-_vectors_151_copia_s.jpg" bigimage3="myalbum/shutterstock_-_vectors_151_copia.jpg" image4="myalbum/shutterstock_-_vectors_153_s.jpg" bigimage4="myalbum/shutterstock_-_vectors_153.jpg" image5="myalbum/shutterstock_-_vectors_155_s.jpg" bigimage5="myalbum/shutterstock_-_vectors_155.jpg" image6="myalbum/shutterstock_-_vectors_156_s.jpg" bigimage6="myalbum/shutterstock_-_vectors_156.jpg" image7="myalbum/shutterstock_-_vectors_157_s.jpg" bigimage7="myalbum/shutterstock_-_vectors_157.jpg" image8="myalbum/shutterstock_-_vectors_159_s.jpg" bigimage8="myalbum/shutterstock_-_vectors_159.jpg" image9="myalbum/shutterstock_-_vectors_160_s.jpg" bigimage9="myalbum/shutterstock_-_vectors_160.jpg" image10="myalbum/shutterstock_-_vectors_161_s.jpg" bigimage10="myalbum/shutterstock_-_vectors_161.jpg" image11="myalbum/shutterstock_-_vectors_162_s.jpg" bigimage11="myalbum/shutterstock_-_vectors_162.jpg" image12="myalbum/shutterstock_-_vectors_164_s.jpg" bigimage12="myalbum/shutterstock_-_vectors_164.jpg" image13="myalbum/shutterstock_-_vectors_165_s.jpg" bigimage13="myalbum/shutterstock_-_vectors_165.jpg" image14="myalbum/shutterstock_-_vectors_166_copia_s.jpg" bigimage14="myalbum/shutterstock_-_vectors_166_copia.jpg" image15="myalbum/shutterstock_-_vectors_168_s.jpg" bigimage15="myalbum/shutterstock_-_vectors_168.jpg" image16="myalbum/shutterstock_-_vectors_169_s.jpg" bigimage16="myalbum/shutterstock_-_vectors_169.jpg" > </thumbnailer> <thumbnailer x="6" y="404" w="474" h="80" myname="thumbs4" image1="myalbum/shutterstock_-_vectors_150(2)_s.jpg" bigimage1="myalbum/shutterstock_-_vectors_150(2).jpg" image2="myalbum/shutterstock_-_vectors_151_copia(2)_s.jpg" bigimage2="myalbum/shutterstock_-_vectors_151_copia(2).jpg" image3="myalbum/shutterstock_-_vectors_153(2)_s.jpg" bigimage3="myalbum/shutterstock_-_vectors_153(2).jpg" image4="myalbum/shutterstock_-_vectors_155(2)_s.jpg" bigimage4="myalbum/shutterstock_-_vectors_155(2).jpg" image5="myalbum/shutterstock_-_vectors_156(2)_s.jpg" bigimage5="myalbum/shutterstock_-_vectors_156(2).jpg" image6="myalbum/shutterstock_-_vectors_157(2)_s.jpg" bigimage6="myalbum/shutterstock_-_vectors_157(2).jpg" image7="myalbum/shutterstock_-_vectors_159(2)_s.jpg" bigimage7="myalbum/shutterstock_-_vectors_159(2).jpg" image8="myalbum/shutterstock_-_vectors_160(2)_s.jpg" bigimage8="myalbum/shutterstock_-_vectors_160(2).jpg" image9="myalbum/shutterstock_-_vectors_161(2)_s.jpg" bigimage9="myalbum/shutterstock_-_vectors_161(2).jpg" image10="myalbum/shutterstock_-_vectors_162(2)_s.jpg" bigimage10="myalbum/shutterstock_-_vectors_162(2).jpg" image11="myalbum/shutterstock_-_vectors_164(2)_s.jpg" bigimage11="myalbum/shutterstock_-_vectors_164(2).jpg" image12="myalbum/shutterstock_-_vectors_165(2)_s.jpg" bigimage12="myalbum/shutterstock_-_vectors_165(2).jpg" image13="myalbum/shutterstock_-_vectors_166_copia(2)_s.jpg" bigimage13="myalbum/shutterstock_-_vectors_166_copia(2).jpg" image14="myalbum/shutterstock_-_vectors_168(2)_s.jpg" bigimage14="myalbum/shutterstock_-_vectors_168(2).jpg" image15="myalbum/shutterstock_-_vectors_169(2)_s.jpg" bigimage15="myalbum/shutterstock_-_vectors_169(2).jpg" > </thumbnailer> <thumbnailer x="6" y="404" w="474" h="80" myname="thumbs5" image1="myalbum/shutterstock_1936573_s.jpg" bigimage1="myalbum/shutterstock_1936573.jpg" image2="myalbum/shutterstock_-_vectors_215_copia_s.jpg" bigimage2="myalbum/shutterstock_-_vectors_215_copia.jpg" image3="myalbum/shutterstock_-_vectors_216_s.jpg" bigimage3="myalbum/shutterstock_-_vectors_216.jpg" image4="myalbum/shutterstock_-_vectors_217_s.jpg" bigimage4="myalbum/shutterstock_-_vectors_217.jpg" image5="myalbum/shutterstock_-_vectors_218_s.jpg" bigimage5="myalbum/shutterstock_-_vectors_218.jpg" image6="myalbum/shutterstock_31306_s.jpg" bigimage6="myalbum/shutterstock_31306.jpg" image7="myalbum/shutterstock_32885_s.jpg" bigimage7="myalbum/shutterstock_32885.jpg" image8="myalbum/shutterstock_88871_s.jpg" bigimage8="myalbum/shutterstock_88871.jpg" image9="myalbum/shutterstock_99012_s.jpg" bigimage9="myalbum/shutterstock_99012.jpg" image10="myalbum/shutterstock_342706_s.jpg" bigimage10="myalbum/shutterstock_342706.jpg" image11="myalbum/shutterstock_856823_s.jpg" bigimage11="myalbum/shutterstock_856823.jpg" image12="myalbum/shutterstock_1332488_s.jpg" bigimage12="myalbum/shutterstock_1332488.jpg" image13="myalbum/shutterstock_1871890_s.jpg" bigimage13="myalbum/shutterstock_1871890.jpg" image14="myalbum/shutterstock_1921404_s.jpg" bigimage14="myalbum/shutterstock_1921404.jpg" > </thumbnailer> <thumbnailer x="6" y="404" w="474" h="80" myname="thumbs6" image1="myalbum/shutterstock_-_vectors_214_s.jpg" bigimage1="myalbum/shutterstock_-_vectors_214.jpg" image2="myalbum/shutterstock_-_vectors_195_s.jpg" bigimage2="myalbum/shutterstock_-_vectors_195.jpg" image3="myalbum/shutterstock_-_vectors_196_s.jpg" bigimage3="myalbum/shutterstock_-_vectors_196.jpg" image4="myalbum/shutterstock_-_vectors_197_s.jpg" bigimage4="myalbum/shutterstock_-_vectors_197.jpg" image5="myalbum/shutterstock_-_vectors_198_s.jpg" bigimage5="myalbum/shutterstock_-_vectors_198.jpg" image6="myalbum/shutterstock_-_vectors_199_s.jpg" bigimage6="myalbum/shutterstock_-_vectors_199.jpg" image7="myalbum/shutterstock_-_vectors_200_s.jpg" bigimage7="myalbum/shutterstock_-_vectors_200.jpg" image8="myalbum/shutterstock_-_vectors_201_s.jpg" bigimage8="myalbum/shutterstock_-_vectors_201.jpg" image9="myalbum/shutterstock_-_vectors_202_s.jpg" bigimage9="myalbum/shutterstock_-_vectors_202.jpg" image10="myalbum/shutterstock_-_vectors_203_copia_s.jpg" bigimage10="myalbum/shutterstock_-_vectors_203_copia.jpg" image11="myalbum/shutterstock_-_vectors_204_s.jpg" bigimage11="myalbum/shutterstock_-_vectors_204.jpg" image12="myalbum/shutterstock_-_vectors_205_s.jpg" bigimage12="myalbum/shutterstock_-_vectors_205.jpg" image13="myalbum/shutterstock_-_vectors_206_s.jpg" bigimage13="myalbum/shutterstock_-_vectors_206.jpg" image14="myalbum/shutterstock_-_vectors_208_s.jpg" bigimage14="myalbum/shutterstock_-_vectors_208.jpg" image15="myalbum/shutterstock_-_vectors_211_s.jpg" bigimage15="myalbum/shutterstock_-_vectors_211.jpg" image16="myalbum/shutterstock_-_vectors_212_s.jpg" bigimage16="myalbum/shutterstock_-_vectors_212.jpg" > </thumbnailer> <thumbnailer x="6" y="404" w="474" h="80" myname="thumbs7" image1="myalbum/shutterstock_-_vectors_194_s.jpg" bigimage1="myalbum/shutterstock_-_vectors_194.jpg" image2="myalbum/shutterstock_-_vectors_171_s.jpg" bigimage2="myalbum/shutterstock_-_vectors_171.jpg" image3="myalbum/shutterstock_-_vectors_174_s.jpg" bigimage3="myalbum/shutterstock_-_vectors_174.jpg" image4="myalbum/shutterstock_-_vectors_175_s.jpg" bigimage4="myalbum/shutterstock_-_vectors_175.jpg" image5="myalbum/shutterstock_-_vectors_177_s.jpg" bigimage5="myalbum/shutterstock_-_vectors_177.jpg" image6="myalbum/shutterstock_-_vectors_178_s.jpg" bigimage6="myalbum/shutterstock_-_vectors_178.jpg" image7="myalbum/shutterstock_-_vectors_180_s.jpg" bigimage7="myalbum/shutterstock_-_vectors_180.jpg" image8="myalbum/shutterstock_-_vectors_181_s.jpg" bigimage8="myalbum/shutterstock_-_vectors_181.jpg" image9="myalbum/shutterstock_-_vectors_182_s.jpg" bigimage9="myalbum/shutterstock_-_vectors_182.jpg" image10="myalbum/shutterstock_-_vectors_184_s.jpg" bigimage10="myalbum/shutterstock_-_vectors_184.jpg" image11="myalbum/shutterstock_-_vectors_185_s.jpg" bigimage11="myalbum/shutterstock_-_vectors_185.jpg" image12="myalbum/shutterstock_-_vectors_186_s.jpg" bigimage12="myalbum/shutterstock_-_vectors_186.jpg" image13="myalbum/shutterstock_-_vectors_188_copia_s.jpg" bigimage13="myalbum/shutterstock_-_vectors_188_copia.jpg" image14="myalbum/shutterstock_-_vectors_190_copia_s.jpg" bigimage14="myalbum/shutterstock_-_vectors_190_copia.jpg" image15="myalbum/shutterstock_-_vectors_192_s.jpg" bigimage15="myalbum/shutterstock_-_vectors_192.jpg" image16="myalbum/shutterstock_-_vectors_193_s.jpg" bigimage16="myalbum/shutterstock_-_vectors_193.jpg" > </thumbnailer> <thumbnailer x="6" y="404" w="474" h="80" myname="thumbs8" image1="myalbum/shutterstock_-_vectors_194(2)_s.jpg" bigimage1="myalbum/shutterstock_-_vectors_194(2).jpg" image2="myalbum/shutterstock_-_vectors_171(2)_s.jpg" bigimage2="myalbum/shutterstock_-_vectors_171(2).jpg" image3="myalbum/shutterstock_-_vectors_174(2)_s.jpg" bigimage3="myalbum/shutterstock_-_vectors_174(2).jpg" image4="myalbum/shutterstock_-_vectors_175(2)_s.jpg" bigimage4="myalbum/shutterstock_-_vectors_175(2).jpg" image5="myalbum/shutterstock_-_vectors_177(2)_s.jpg" bigimage5="myalbum/shutterstock_-_vectors_177(2).jpg" image6="myalbum/shutterstock_-_vectors_178(2)_s.jpg" bigimage6="myalbum/shutterstock_-_vectors_178(2).jpg" image7="myalbum/shutterstock_-_vectors_180(2)_s.jpg" bigimage7="myalbum/shutterstock_-_vectors_180(2).jpg" image8="myalbum/shutterstock_-_vectors_181(2)_s.jpg" bigimage8="myalbum/shutterstock_-_vectors_181(2).jpg" image9="myalbum/shutterstock_-_vectors_182(2)_s.jpg" bigimage9="myalbum/shutterstock_-_vectors_182(2).jpg" image10="myalbum/shutterstock_-_vectors_184(2)_s.jpg" bigimage10="myalbum/shutterstock_-_vectors_184(2).jpg" image11="myalbum/shutterstock_-_vectors_185(2)_s.jpg" bigimage11="myalbum/shutterstock_-_vectors_185(2).jpg" image12="myalbum/shutterstock_-_vectors_186(2)_s.jpg" bigimage12="myalbum/shutterstock_-_vectors_186(2).jpg" image13="myalbum/shutterstock_-_vectors_188_copia(2)_s.jpg" bigimage13="myalbum/shutterstock_-_vectors_188_copia(2).jpg" image14="myalbum/shutterstock_-_vectors_190_copia(2)_s.jpg" bigimage14="myalbum/shutterstock_-_vectors_190_copia(2).jpg" image15="myalbum/shutterstock_-_vectors_192(2)_s.jpg" bigimage15="myalbum/shutterstock_-_vectors_192(2).jpg" image16="myalbum/shutterstock_-_vectors_193(2)_s.jpg" bigimage16="myalbum/shutterstock_-_vectors_193(2).jpg" > </thumbnailer> <thumbnailer x="6" y="404" w="474" h="80" myname="thumbs9" image1="myalbum/shutterstock_-_vectors_192(3)_s.jpg" bigimage1="myalbum/shutterstock_-_vectors_192(3).jpg" image2="myalbum/shutterstock_-_vectors_177(3)_s.jpg" bigimage2="myalbum/shutterstock_-_vectors_177(3).jpg" image3="myalbum/shutterstock_-_vectors_178(3)_s.jpg" bigimage3="myalbum/shutterstock_-_vectors_178(3).jpg" image4="myalbum/shutterstock_-_vectors_180(3)_s.jpg" bigimage4="myalbum/shutterstock_-_vectors_180(3).jpg" image5="myalbum/shutterstock_-_vectors_181(3)_s.jpg" bigimage5="myalbum/shutterstock_-_vectors_181(3).jpg" image6="myalbum/shutterstock_-_vectors_182(3)_s.jpg" bigimage6="myalbum/shutterstock_-_vectors_182(3).jpg" image7="myalbum/shutterstock_-_vectors_184(3)_s.jpg" bigimage7="myalbum/shutterstock_-_vectors_184(3).jpg" image8="myalbum/shutterstock_-_vectors_185(3)_s.jpg" bigimage8="myalbum/shutterstock_-_vectors_185(3).jpg" image9="myalbum/shutterstock_-_vectors_190_copia(3)_s.jpg" bigimage9="myalbum/shutterstock_-_vectors_190_copia(3).jpg" image10="myalbum/shutterstock_-_vectors_186(3)_s.jpg" bigimage10="myalbum/shutterstock_-_vectors_186(3).jpg" image11="myalbum/shutterstock_-_vectors_188_copia(3)_s.jpg" bigimage11="myalbum/shutterstock_-_vectors_188_copia(3).jpg" > </thumbnailer> <thumbnailer x="6" y="404" w="474" h="80" myname="thumbs10" image1="myalbum/shutterstock_-_vectors_164(3)_s.jpg" bigimage1="myalbum/shutterstock_-_vectors_164(3).jpg" image2="myalbum/shutterstock_-_vectors_155(3)_s.jpg" bigimage2="myalbum/shutterstock_-_vectors_155(3).jpg" image3="myalbum/shutterstock_-_vectors_156(3)_s.jpg" bigimage3="myalbum/shutterstock_-_vectors_156(3).jpg" image4="myalbum/shutterstock_-_vectors_157(3)_s.jpg" bigimage4="myalbum/shutterstock_-_vectors_157(3).jpg" image5="myalbum/shutterstock_-_vectors_159(3)_s.jpg" bigimage5="myalbum/shutterstock_-_vectors_159(3).jpg" image6="myalbum/shutterstock_-_vectors_160(3)_s.jpg" bigimage6="myalbum/shutterstock_-_vectors_160(3).jpg" image7="myalbum/shutterstock_-_vectors_161(3)_s.jpg" bigimage7="myalbum/shutterstock_-_vectors_161(3).jpg" image8="myalbum/shutterstock_-_vectors_162(3)_s.jpg" bigimage8="myalbum/shutterstock_-_vectors_162(3).jpg" > </thumbnailer> <catagories bkdobk="t" bkdogradient="f" bkfillclr="0x000000" bkfillalpha="25" bkgradclr="0x808080" bkgradalpha="25" bkgradangle="70" bkdoimg="f" bkimg="" bkdobdr="f" bkbdrsolid="f" bkbdrcolor="0x000000" bkdomask="t" w="442" h="375" catw="200" cath="75" catxypadding="10" cathlight="t" cathlightwidth="2" cathlightclr="0xFF0000" catimgw="50" catimgh="38" catfontsize="10" catfontclr="0xFFFFFF" catfont="Tahoma" catdobk="t" catdogradient="f" catfillclr="0x000000" catfillalpha="25" catgradclr="0xC0C0C0" catgradalpha="70" catgradangle="70" catdobdr="t" catbdrsolid="t" catbdrcolor="0xFFFFFF" cat1link="thumbs1" cat1name="My Images" cat1text="Put the description of your images here." cat1image="myalbum/shutterstock_-_vectors_091_s.jpg" cat2link="thumbs2" cat2name="My Images" cat2text="Put the description of your images here." cat2image="myalbum/shutterstock_-_vectors_149_s.jpg" cat3link="thumbs3" cat3name="My Images" cat3text="Put the description of your images here." cat3image="myalbum/shutterstock_-_vectors_170_s.jpg" cat4link="thumbs4" cat4name="My Images" cat4text="Put the description of your images here." cat4image="myalbum/shutterstock_-_vectors_150(2)_s.jpg" cat5link="thumbs5" cat5name="My Images" cat5text="Put the description of your images here." cat5image="myalbum/shutterstock_1936573_s.jpg" cat6link="thumbs6" cat6name="My Images" cat6text="Put the description of your images here." cat6image="myalbum/shutterstock_-_vectors_214_s.jpg" cat7link="thumbs7" cat7name="My Images" cat7text="Put the description of your images here." cat7image="myalbum/shutterstock_-_vectors_194_s.jpg" cat8link="thumbs8" cat8name="My Images" cat8text="Put the description of your images here." cat8image="myalbum/shutterstock_-_vectors_194(2)_s.jpg" cat9link="thumbs9" cat9name="My Images" cat9text="Put the description of your images here." cat9image="myalbum/shutterstock_-_vectors_192(3)_s.jpg" cat10link="thumbs10" cat10name="My Images" cat10text="Put the description of your images here." cat10image="myalbum/shutterstock_-_vectors_164(3)_s.jpg" ></catagories></imagegallery>-----------------------------------------------------------obrigado pela atenção, sds, Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 konras Postado Outubro 2, 2007 Denunciar Share Postado Outubro 2, 2007 Tendo em vista tantos feras ajudando, apenas deixo um link para meus tutos, onde você encontrará um tuto de XML ... abraços. ;) Citar Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
jeffersonyou
Galera esperta,...
preiso de orientação de meus brothers,....
como estou aprendendo sobre galeria flash + xml,...
me ajudem por favor nesse cod. abaixo:
----------------------------------------------------
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 = "fotos/" + _root.categoria + "/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 = "fotos/" + _root.categoria + "/xml/" + _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.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);
---------------------------------------------------------------------
* estou aproveitando esse cod. acima, mas preciso que meus amigos me ajudem acerta-lo,.......
quero criar um arquivo em xml que oriente buscar uma foto na MESMA PASTA,.......
_pois da forma que está está monstrando erro,...e já tentei criar os caminhos como pede mas não consigo,....
* então preciso da ajuda de vocês,...pra acionar o comando correto pra dentroda mesma pasta onde está o arquivo,.....
grato pela atenção de todos, sds,
JEFFErson
Link para o comentário
Compartilhar em outros sites
3 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.