Comunidad de diseño web y desarrollo en internet online

problema vinculando flash y xml

Citar            
MensajeEscrito el 05 Dic 2010 03:58 am
Hola, tengo un pequeño problema con una galeria flash/xml. el problema es el siguiente:

tengo el .fla...péro!... necesito crear un nuevo xml (el cual no es problema), lo que no he podido resolver, es como hacer correctamente el vinculo, ya que los scripts en el fla estan direccionados hacia un xml situado en un servidor remoto (no tengo idea de el porque) al cual no tengo acceso, entonces, necesito cambiar eso, para que trabajo con un xml creado por mí, si alguien pudiera orientarme para poder solucionar esto, se lo agradeceria, para alguien con mas experiencia creo que será algo ovbio.

gracias de antemano, y dejo los scripts para que puedan ver el error.

Código ActionScript :

function parseXML()
{
    var _loc6 = new Object();
    var _loc2;
    _global.smallImg_array = new Array();
    var _loc5 = img_xml.firstChild.firstChild.childNodes.length;
    if (_loc5 < 8)
    {
        getURL("javascript:alert(\'only " + _loc5 + " Artworks\');", "");
    } // end if
    for (var _loc2 = 0; _loc2 < _loc5; ++_loc2)
    {
        var _loc4 = img_xml.firstChild.firstChild.childNodes[_loc2];
        var _loc3 = new Object();
        _loc3.img = _loc4.childNodes[0].firstChild.nodeValue;
        _loc3.link = _loc4.childNodes[1].firstChild.nodeValue;
        smallImg_array[_loc2] = _loc3;
    } // end of for
    _global.largeImg_array = new Array();
    _loc5 = img_xml.firstChild.childNodes[1].childNodes.length;
    for (var _loc2 = 0; _loc2 < _loc5; ++_loc2)
    {
        _loc4 = img_xml.firstChild.childNodes[1].childNodes[_loc2];
        _loc3 = new Object();
        _loc3.img = _loc4.childNodes[0].firstChild.nodeValue;
        _loc3.link = _loc4.childNodes[1].firstChild.nodeValue;
        largeImg_array[_loc2] = _loc3;
    } // end of for
} // End of the function
function loadImage(i)
{
    if (i > smallImages + largeImg_array.length - 1)
    {
        return;
    } // end if
    var _loc3;
    var _loc4;
    var no;
    if (i <= smallImages)
    {
        _loc3 = photo["picS" + i].holder;
        _loc4 = smallImg_array;
        no = i;
    }
    else
    {
        no = i - smallImages;
        _loc3 = photo["picL" + no].holder;
        _loc4 = largeImg_array;
    } // end else if
    if (no >= 5)
    {
        proceed = true;
    } // end if
    if (_loc3)
    {
        _loc3._parent.w = _loc3._width;
        _loc3._parent.h = _loc3._height;
        var _loc6 = "Loading.gif";
        if (_loc4[no].img)
        {
            _loc6 = _loc4[no].img;
        } // end if
        _loc3._parent.href = ".";
        if (_loc4[no].link)
        {
            _loc3._parent.href = _loc4[no].link;
        } // end if
        this["p" + no + "_mcl"] = new MovieClipLoader();
        this["p" + no + "_listener"] = new Object();
        this["p" + no + "_listener"].onLoadInit = function (target_mc)
        {
            var _loc4 = target_mc._parent.w / target_mc._width * 100;
            var _loc3 = target_mc._parent.h / target_mc._height * 100;
            var _loc2 = Math.min(_loc4, _loc3);
            target_mc._xscale = _loc2;
            target_mc._yscale = _loc2;
            target_mc._x = -target_mc._width / 2;
            target_mc._y = -target_mc._height / 2;
            target_mc._parent.cover._visible = false;
        };
        this["p" + no + "_listener"].onLoadComplete = function ()
        {
            delete _root["p" + no + "_listener"];
            _root.loadImage(i + 1);
        };
        this["p" + no + "_listener"].onLoadError = function (err, errorCode)
        {
            _root.loadImage(i + 1);
        };
        this["p" + no + "_mcl"].addListener(this["p" + no + "_listener"]);
        this["p" + no + "_mcl"].loadClip(_loc6, _loc3);
    }
    else
    {
        _root.loadImage(i + 1);
    } // end else if
} // End of the function
parseXML();
loadImage(0);
proceed = false;
smallImages = 51;

Por CLAnonimo

Claber

600 de clabLevel

5 tutoriales
1 articulo

 

Este es un usuario anónimo genérico para las cuentas borradas o perdidas.

msie
Citar            
MensajeEscrito el 06 Dic 2010 03:06 pm
No veo que cargue ningund URL.
Tip: simplemente busca donde está la ruta de donde carga, luego reemplaza por la tuya, nada que un buen editor de texto no pueda hacer

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.