Ir para conteúdo
Fórum Script Brasil

fextreme

Membros
  • Total de itens

    3
  • Registro em

  • Última visita

Tudo que fextreme postou

  1. Boa noite, Baixei uma galeria de fotos da net, e gostaria de acrescentar o campo crédito das fotos, mas não consigo. Estou envialdo o AS e o XML (já com o campo crédito). Eu consegui fazer aparecer o credito puxando do xml... mas quando muda de foto ele pega o caminho da foto e não o crédito. AS System.useCodepage = true; function initGallery() { function loadXML(loaded) { if (loaded) { xmlNode = this.firstChild; total = xmlNode.childNodes.length; i = 0; while (i < total) { _root.small_image[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue; _root.big_image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue; _root.description[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue; if (i == 0) { _root.loadGImage(_root.description[i], _root.big_image[i]); } ++_root.total_images; ++i; } createSmall(); _root.downloadButton._visible = true; return; } content = "file not loaded!"; } xmlData = new XML(); xmlData.ignoreWhite = true; xmlData.onLoad = loadXML; if (_root.xml_file == undefined) { myIdentifier = Math.round(Math.random()*10000); myUrl = "/XmlDaGaleria.aspx?x=" + myIdentifier; _root.xml_file = myUrl; } xmlData.load(xml_file); } function createSmall() { _root.smallContainer.createEmptyMovieClip("smallImageContainer", 10); var __reg4 = 0; var __reg3 = 0; var __reg2 = 0; while (__reg2 < _root.small_image.length) { _root.smallContainer.imageContainer.attachMovie("smallImage", "smallImage_" + __reg2,100 + __reg2); m = _root.smallContainer.imageContainer["smallImage_" + __reg2]; m._x = __reg3 * 50; m._y = 0; //m._width = 145; //m._height = 82; //m._xscale = 200; //m._yscale = 200; m.imageContainer.loadMovie(_root.small_image[__reg2], 100); m.iData = Array(); m.iData.big = _root.big_image[__reg2]; m.iData.title = _root.description[__reg2]; ++__reg3; ++__reg2; } _root.smallImageContainer._x = 5; _root.smallImageContainer._y = 0; } function loadGImage(title, bigImgURL) { _root.bigImage.imageContainer.loadMovie(bigImgURL, 100); _root.bigImage.imageContainer._y = 0; _root.title.text = title; _root.downloadButton.onRelease = function () { getURL(bigImgURL, "_blank"); } ; } function goFullScreen() { Stage.displayState = "fullScreen"; } function exitFullScreen() { Stage.displayState = "normal"; } function menuHandler(obj, menuObj) { if (Stage.displayState == "normal") { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; return; } menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } _root.description = new Array(); _root.small_image = new Array(); _root.big_image = new Array(); _root.total_images = 0; initGallery(); var fullscreenCM = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs = new ContextMenuItem("Go Full Screen", goFullScreen); fullscreenCM.customItems.push(fs); var xfs = new ContextMenuItem("Exit Full Screen", exitFullScreen); fullscreenCM.customItems.push(xfs); _root.menu = fullscreenCM; downloadButton._visible = false; XML <?xml version="1.0" encoding="utf-8" standalone="yes"?> <images> <pic> <grande>gallery/1.jpg</grande> <pequena>gallery/s1.jpg</pequena> <fotografo>foto:João</fotografo> <legenda>Legenda 1</legenda> </pic> <pic> <grande>gallery/2.jpg</grande> <pequena>gallery/s1.jpg</pequena> <fotografo>foto:Marcelo</fotografo> <legenda>Legenda 2</legenda> </pic> </images>
  2. HTML tranquilo... PHP e MySQL básico
  3. ola pessoal, preciso fazer um cadastro de usuários onde cada um irá colocar informações como: -login -senha -nome -telefone -email -etc e que ele possa alterar essas informações quando ele quiser ou apagar a conta apos cadastrar ele ira efetuar o login e irá para uma página restrita onde irá aparecer a lista de todos os usuários obrigado
×
×
  • Criar Novo...