Ciao a tutti, ho un problema con lo slideshow di notizie.
L'applicazione flash tramite un file php legge delle notizie memorizzate su un db mysql. Il mio problema è fare in modo che flash riconosca l'aggiornamento continuo nel db. Sono riuscito a far capire a flash l'aggiornamento ma una volta introdotta una nuova notizia il filmato va in loop e me ne mostra sempre una...
Ringrazio tutti per qualsiasi tipo di aiuto!
Vi posto il codice che ho sritto:
function News(){
trace(news.totNews);
if (i == news.totNews)
{
i = 0;
} // end if
txtNews.htmlText = "" + news["data" + i] + "
";
txtNews.htmlText = txtNews.htmlText + ("" + news["titolo" + i] + "
");
txtNews.htmlText = txtNews.htmlText + (news["testo" + i] + "
");
txtNews.htmlText = txtNews.htmlText + ("<a href=\"" + news["link" + i] + "\">" + news["link" + i] + "</a>");
++i;
} // End of the function
stop ();
News();
time(fadeIn);
checktot = new LoadVars();
checktot.onLoad = function (success)
{
if (success)
{
trace(checktot.totNews);
if (news.totNews != checktot.totNews){
gotoAndPlay(1);
}
} // end if
};
checktot.load(file);