Comunidad de diseño web y desarrollo en internet online

flash k no se actualiza

Citar            
MensajeEscrito el 04 Feb 2009 03:42 pm
tengo un flash ( es una galeria de imagenes de noticias) pero cuando cambio de noticia la galeria no cambia (sale siempre la misma. la galeria es cargada mediante un xml k va actualizandose por base de datos.
Me he dado cuenta k el flash al tener el xml descargado (e archivos temporales) no lo vuelve a descargar (creo k hay esta el tema)

voy a copiar un trozo de codigo del flash :

function xmlLoaded(success)
{
trace ("Loaded XML: " + success);
if (success)
{
gmcMain.mcLoader.gotoAndPlay("done");
}
else
{
trace ("Load XML failed");
} // end else if
} // End of the function

mcLoader.gotoAndPlay(1);

gXmlDataPath = "imageData.xml";


trace ("gXmlDataPath: " + gXmlDataPath);
_global.gImageData_xml = new XML();
gImageData_xml.load(gXmlDataPath);
gImageData_xml.onLoad = xmlLoaded;
gImageData_xml.ignoreWhite = true;

mcLoader.onEnterFrame = function ()
{
gImgBytesLoaded = gImageData_xml.getBytesLoaded();
gImgBytesTotal = gImageData_xml.getBytesTotal();
loadWidth = Math.round(gImgBytesLoaded / gImgBytesTotal * 106);
loadWidth = Math.min(106, loadWidth);
this.mcBar._width = Math.ceil(loadWidth);
};
gotoAndPlay(1);









si necesitais algo de codigo o lo k sea avisadme

Por kaosito_2005

28 de clabLevel



 

msie7
Citar            
MensajeEscrito el 04 Feb 2009 04:10 pm

Código ActionScript :

gXmlDataPath = "imageData.xml?nocaching="+random(1000);

Por nasho

Claber

908 de clabLevel

1 tutorial

Genero:Masculino  

Web Developer

firefox
Citar            
MensajeEscrito el 04 Feb 2009 06:50 pm
muchisimas gracias, ya funciona. no sabes lo contentisimo que estoy.

Por kaosito_2005

28 de clabLevel



 

msie7

 

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