grazie mille per la dritta, ma ora c'è un problema...
nn visualizza piu le news...mi esce il trace corretto del caricamento file, ma non vedo piu niente..
questo è il codice modificato:
1° frame:
stop();
Stage.showMenu = false;
Stage.scaleMode = 'noScale';
System.useCodepage = true;
/*file = 'http://www.mezzanotte-srl.it/play/news.php';
news = new LoadVars();
news.onLoad = function(success){
if(success){
play();
}
}
news.load(file);*/
var lv = new LoadVars();
lv.onLoad = function(ok){
if(ok){
trace("File caricato")
}
}
lv.load("http://www.pippopluto.it/play/news.php");
var intv = setInterval(function(){lv.load("http://www.pippopluto.it/play/news.php");}, 60000);
alpha = 100;
i = 0;
function time(a){
fade = setInterval(a, 20);
}
function fadeIn(){
if(alpha == 0){
clearInterval(fade);
play();
}
else{
alpha -= 1;
mask._alpha = alpha;
}
}
function fadeOut(){
if(alpha == 100){
clearInterval(fade);
gotoAndPlay(2);
}
else{
alpha += 1;
mask._alpha = alpha;
}
}
questo è il 2° frame:
stop();
function News(){
if(i == lv.totNews){
i = 0;
}
txtNews.htmlText = ''+lv["data"+i]+'
';
txtNews.htmlText += ''+lv["titolo"+i]+'
';
txtNews.htmlText += lv["testo"+i];
i++;
}
News();
time(fadeIn);
il 30° lo posso buttare? in che senso?

Rispondi quotando