Comunidad de diseño web y desarrollo en internet online

Carpeta donde guardar las imagenes en un swf de Flash en la web

Citar            
MensajeEscrito el 23 Sep 2009 07:09 pm
Hola
Estoy armando mi página para mostrar fotos y no puedo lograr saber dónde están guardadas las fotos en un script flash que encontré en un sitio. Está todo menos las fotos y no se cómo crear esas fotos, me podrían decir en qué carpeta poner las fotos para que esa galería me muestre las fotos que yo quiero?

No se en qué carpeta pueden estar las fotos guardadas, llegué a http://www.clarin.com/diario/2007/11...ones/datos.xml donde está todo cargado menos las fotos y no se dónde puedo encontrarlas

Quiero hacer lo mismo pero en mi página... les paso parte del código donde llama a las fotos (no está completo el código total del archivo.



function depth()
{
return (j++);
} // End of the function
stop ();
System.useCodepage = true;
System.security.loadPolicyFile("http://eventos.mi.com.ar/aspmail/foto-reportaje/crossdomain.xml");
Stage.showMenu = false;
var j = 100;
var actual = 1;
estado = "play";
panel = "nada";
cuanto = 50;
botonera_mc.play_mc.gotoAndStop(10);
botonera_mc.play_mc.enabled = false;
cargador_mc._visible = false;
block_mc.useHandCursor = false;
block_mc.onRollOver = function ()
{
};
block_mc._visible = false;
var my_mcl = new MovieClipLoader();
myListener = new Object();
myListener.onLoadStart = function (target_mc)
{
cargador_mc._visible = true;
};
myListener.onLoadProgress = function (target_mc, loadedBytes, totalBytes)
{
var _loc1 = Math.round(loadedBytes * 100 / totalBytes);
cargador_mc.cargadores_mc.porcentaje_txt.text = "cargando " + _loc1 + "%";
};
myListener.onLoadComplete = function (target_mc)
{
cargador_mc._visible = false;
contenedor_mc.gotoAndPlay("on");
if (fotos[actual - 1] == undefined)
{
textoo = "";
}
else
{
textoo = fotos[actual - 1];
} // end else if
bajada_txt.text = textoo;
};
my_mcl.addListener(myListener);
var fotos = [];
var obj_xml = new XML();
obj_xml.ignoreWhite = true;
obj_xml.onLoad = function ()
{
function cambio()
{
my_mcl.loadClip("fotos/" + actual + ".jpg", contenedor_mc.foto_mc);
slider_mc.globo_mc.info_mc.numero_txt.text = actual + "/" + fotos.length;
slider_mc.globo_mc._x = slider_mc.control_mc._x;
if (!movim)
{
slider_mc.globo_mc.gotoAndPlay("on");
} // end if
} // End of the function
function cambioFoto()
{
finalee = fotos.length + 1;
for (k = 1; k < finalee; k++)
{
uno = k;
dos = uno + 1;
if (slider_mc.control_mc._x > slider_mc["marca" + uno]._x && slider_mc.control_mc._x < slider_mc["marca" + dos]._x)
{
if (actual != uno)
{
actual = uno;
cambio();
} // end if
} // end if
} // end of for
if (slider_mc.control_mc._x < slider_mc["marca" + finalee]._x)
{
slider_mc.control_mc._x = slider_mc.control_mc._x + avanza;
slider_mc.globo_mc._x = slider_mc.control_mc._x;
}
else
{
final = true;
if (estado == "play" && !nada)
{
nada = true;
estado = "pausa";
botonera_mc.play_mc.enabled = true;
botonera_mc.play_mc.gotoAndPlay("off");
botonera_mc.pausa_mc.enabled = false;
botonera_mc.pausa_mc.gotoAndPlay("on");
} // end if
} // end else if
} // End of the function

obj_xml.load("datos.xml");


Gracias
Matías

Por matyrojo666

21 de clabLevel



Genero:Masculino  

2006

firefox
Citar            
MensajeEscrito el 23 Sep 2009 07:25 pm
Este es todo el código:

function depth()
{
return (j++);
} // End of the function
stop ();
System.useCodepage = true;
System.security.loadPolicyFile("http://eventos.mi.com.ar/aspmail/foto-reportaje/crossdomain.xml");
Stage.showMenu = false;
var j = 100;
var actual = 1;
estado = "play";
panel = "nada";
cuanto = 50;
botonera_mc.play_mc.gotoAndStop(10);
botonera_mc.play_mc.enabled = false;
cargador_mc._visible = false;
block_mc.useHandCursor = false;
block_mc.onRollOver = function ()
{
};
block_mc._visible = false;
var my_mcl = new MovieClipLoader();
myListener = new Object();
myListener.onLoadStart = function (target_mc)
{
cargador_mc._visible = true;
};
myListener.onLoadProgress = function (target_mc, loadedBytes, totalBytes)
{
var _loc1 = Math.round(loadedBytes * 100 / totalBytes);
cargador_mc.cargadores_mc.porcentaje_txt.text = "cargando " + _loc1 + "%";
};
myListener.onLoadComplete = function (target_mc)
{
cargador_mc._visible = false;
contenedor_mc.gotoAndPlay("on");
if (fotos[actual - 1] == undefined)
{
textoo = "";
}
else
{
textoo = fotos[actual - 1];
} // end else if
bajada_txt.text = textoo;
};
my_mcl.addListener(myListener);
var fotos = [];
var obj_xml = new XML();
obj_xml.ignoreWhite = true;
obj_xml.onLoad = function ()
{
function cambio()
{
my_mcl.loadClip("fotos/" + actual + ".jpg", contenedor_mc.foto_mc);
slider_mc.globo_mc.info_mc.numero_txt.text = actual + "/" + fotos.length;
slider_mc.globo_mc._x = slider_mc.control_mc._x;
if (!movim)
{
slider_mc.globo_mc.gotoAndPlay("on");
} // end if
} // End of the function
function cambioFoto()
{
finalee = fotos.length + 1;
for (k = 1; k < finalee; k++)
{
uno = k;
dos = uno + 1;
if (slider_mc.control_mc._x > slider_mc["marca" + uno]._x && slider_mc.control_mc._x < slider_mc["marca" + dos]._x)
{
if (actual != uno)
{
actual = uno;
cambio();
} // end if
} // end if
} // end of for
if (slider_mc.control_mc._x < slider_mc["marca" + finalee]._x)
{
slider_mc.control_mc._x = slider_mc.control_mc._x + avanza;
slider_mc.globo_mc._x = slider_mc.control_mc._x;
}
else
{
final = true;
if (estado == "play" && !nada)
{
nada = true;
estado = "pausa";
botonera_mc.play_mc.enabled = true;
botonera_mc.play_mc.gotoAndPlay("off");
botonera_mc.pausa_mc.enabled = false;
botonera_mc.pausa_mc.gotoAndPlay("on");
} // end if
} // end else if
} // End of the function
nombreAutor = obj_xml.firstChild.childNodes[1].childNodes[0].childNodes[0];
titulo = obj_xml.firstChild.childNodes[0].childNodes[0];
titulo_txt.text = String(titulo).toUpperCase() + " por " + String(nombreAutor);
panelautor_mc.cuadro_mc.nombre_txt.text = String(nombreAutor).toUpperCase();
textoAutor = obj_xml.firstChild.childNodes[1].childNodes[2].childNodes[0].nodeValue;
panelautor_mc.cuadro_mc.biografia_txt.htmlText = String(textoAutor);
mailautor = obj_xml.firstChild.childNodes[1].childNodes[1].childNodes[0];
panelautor_mc.cuadro_mc.email_txt.text = String(mailautor);
duracion = String(obj_xml.firstChild.childNodes[3].childNodes[0]) * 1000;
elurl = String(obj_xml.firstChild.childNodes[4].childNodes[0]);
for (var _loc4 = 0; _loc4 < obj_xml.firstChild.childNodes[2].childNodes.length; ++_loc4)
{
fotos.push(obj_xml.firstChild.childNodes[2].childNodes[_loc4].childNodes[0]);
} // end of for
slider_mc.globo_mc.info_mc.numero_txt.text = actual + "/" + fotos.length;
porcFoto = 100 / Number(fotos.length);
pixelFoto = Math.round(porcFoto * slider_mc.barra_mc._width) / 100;
avanza = cuanto * pixelFoto / duracion;
for (var _loc3 = 0; _loc3 < fotos.length; ++_loc3)
{
tmp = slider_mc.attachMovie("marca", "marca" + (_loc3 + 1), depth());
tmp._y = slider_mc.barra_mc._y;
tmp._x = slider_mc.barra_mc._x + pixelFoto * _loc3;
tmp._alpha = 0;
} // end of for
tmp = slider_mc.attachMovie("marca", "marca" + (fotos.length + 1), depth());
tmp._y = slider_mc.barra_mc._y;
tmp._x = slider_mc.barra_mc._x + slider_mc.barra_mc._width;
tmp._alpha = 0;
cambio();
id = setInterval(cambioFoto, cuanto);
botonera_mc.autor_mc.onRollOver = botonera_mc.recomendar_mc.onRollOver = botonera_mc.escribanos_mc.onRollOver = botonera_mc.play_mc.onRollOver = botonera_mc.pausa_mc.onRollOver = botonera_mc.flecha1_mc.onRollOver = botonera_mc.flecha2_mc.onRollOver = slider_mc.control_mc.onRollOver = function ()
{
this.gotoAndPlay("on");
};
botonera_mc.autor_mc.onRollOut = botonera_mc.recomendar_mc.onRollOut = botonera_mc.escribanos_mc.onRollOut = botonera_mc.play_mc.onRollOut = botonera_mc.pausa_mc.onRollOut = botonera_mc.flecha1_mc.onRollOut = botonera_mc.flecha2_mc.onRollOut = slider_mc.control_mc.onRollOut = function ()
{
this.gotoAndPlay("off");
};
botonera_mc.play_mc.onPress = function ()
{
nada = false;
this.enabled = false;
botonera_mc.pausa_mc.enabled = true;
botonera_mc.pausa_mc.gotoAndPlay("off");
if (final == true)
{
final = false;
actual = 1;
slider_mc.control_mc._x = slider_mc.marca1._x;
cambio();
clearInterval(id);
id = setInterval(cambioFoto, cuanto);
} // end if
estado = "play";
clearInterval(id);
id = setInterval(cambioFoto, cuanto);
};
botonera_mc.pausa_mc.onPress = function ()
{
this.enabled = false;
botonera_mc.play_mc.enabled = true;
botonera_mc.play_mc.gotoAndPlay("off");
estado = "pausa";
clearInterval(id);
};
botonera_mc.flecha1_mc.onPress = function ()
{
if (actual > 1)
{
if (estado == "play")
{
clearInterval(id);
id = setInterval(cambioFoto, cuanto);
} // end if
if (final == true)
{
final = false;
} // end if
--actual;
slider_mc.control_mc._x = slider_mc["marca" + actual]._x;
cambio();
} // end if
};
botonera_mc.flecha2_mc.onPress = function ()
{
if (actual < fotos.length)
{
if (estado == "play")
{
clearInterval(id);
id = setInterval(cambioFoto, cuanto);
} // end if
++actual;
slider_mc.control_mc._x = slider_mc["marca" + actual]._x;
cambio();
} // end if
};
slider_mc.control_mc.onPress = function ()
{
movim = true;
_root.onEnterFrame = function ()
{
slider_mc.globo_mc._x = slider_mc.control_mc._x;
for (k = 1; k < fotos.length + 1; k++)
{
uno = k;
dos = uno + 1;
if (slider_mc.control_mc._x > slider_mc["marca" + uno]._x && slider_mc.control_mc._x < slider_mc["marca" + dos]._x)
{
if (actual != uno)
{
actual = uno;
cambio();
} // end if
} // end if
} // end of for
};
slider_mc.globo_mc.gotoAndPlay("on2");
this.gotoAndPlay("on");
clearInterval(id);
this.startDrag(false, slider_mc.barra_mc._x, slider_mc.barra_mc._y, slider_mc.barra_mc._x + slider_mc.barra_mc._width, slider_mc.barra_mc._y);
};
slider_mc.control_mc.onReleaseOutside = slider_mc.control_mc.onRelease = function ()
{
movim = false;
_root.onEnterFrame = null;
slider_mc.globo_mc.gotoAndPlay("off");
this.stopDrag();
if (estado == "play")
{
clearInterval(id);
id = setInterval(cambioFoto, cuanto);
} // end if
};
slider_mc.control_mc.onReleaseOutside = function ()
{
this.gotoAndPlay("off");
};
botonera_mc.autor_mc.onPress = function ()
{
block_mc._visible = true;
clearInterval(id);
if (panel == "nada")
{
panel = "autor";
panelautor_mc.gotoAndPlay("entra");
botonera_mc.autor_mc.gotoAndStop("parado");
this.enabled = false;
}
else
{
this.enabled = false;
botonera_mc.recomendar_mc.enabled = true;
botonera_mc.recomendar_mc.gotoAndPlay("off");
botonera_mc.autor_mc.gotoAndStop("parado");
panelrecomendar_mc.gotoAndPlay("sale");
panel = "autor";
} // end else if
};
botonera_mc.recomendar_mc.onPress = function ()
{
block_mc._visible = true;
clearInterval(id);
if (panel == "nada")
{
panel = "recomendar";
panelrecomendar_mc.gotoAndPlay("entra");
botonera_mc.recomendar_mc.gotoAndStop("parado");
this.enabled = false;
}
else
{
this.enabled = false;
botonera_mc.recomendar_mc.gotoAndStop("parado");
botonera_mc.autor_mc.gotoAndPlay("off");
botonera_mc.autor_mc.enabled = true;
panelautor_mc.gotoAndPlay("sale");
panel = "recomendar";
} // end else if
};
botonera_mc.escribanos_mc.onPress = function ()
{
getURL("mailto:[email protected]");
};
panelautor_mc.cuadro_mc.boton_mc.onPress = function ()
{
block_mc._visible = false;
panel = "nada";
panelautor_mc.gotoAndPlay("sale");
botonera_mc.autor_mc.gotoAndPlay("off");
botonera_mc.autor_mc.enabled = true;
if (estado == "play")
{
clearInterval(id);
id = setInterval(cambioFoto, cuanto);
} // end if
};
panelrecomendar_mc.panel_mc.boton_mc.onPress = function ()
{
block_mc._visible = false;
panel = "nada";
panelrecomendar_mc.gotoAndPlay("sale");
botonera_mc.recomendar_mc.gotoAndPlay("off");
botonera_mc.recomendar_mc.enabled = true;
if (estado == "play")
{
clearInterval(id);
id = setInterval(cambioFoto, cuanto);
} // end if
};
panelrecomendar_mc.panel_mc.enviar_mc.onPress = function ()
{
if (panelrecomendar_mc.panel_mc.text1_txt.text == "" || panelrecomendar_mc.panel_mc.text2_txt.text == "")
{
panelrecomendar_mc.panel_mc.error_mc.gotoAndPlay("on");
}
else
{
var _loc1 = new LoadVars();
var _loc2 = new LoadVars();
_loc1.nombre = panelrecomendar_mc.panel_mc.text2_txt.text;
_loc1.mail = panelrecomendar_mc.panel_mc.text1_txt.text;
_loc1.titulo = titulo;
_loc1.direccion = elurl;
_loc1.sendAndLoad("http://eventos.mi.com.ar/aspmail/foto-reportaje/recomendar.asp", _loc2, "POST");
panelrecomendar_mc.panel_mc.enviado_mc.gotoAndPlay("on");
panelrecomendar_mc.panel_mc.error_mc.gotoAndStop(1);
panelrecomendar_mc.panel_mc.text1_txt.text = "";
panelrecomendar_mc.panel_mc.text2_txt.text = "";
} // end else if
};
slider_mc.control_mc.swapDepths(132456);
};
obj_xml.load("datos.xml");

Por matyrojo666

21 de clabLevel



Genero:Masculino  

2006

firefox

 

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