Ho seguito questo tutorial:
http://www.coachdesign.it/Tutorials/...ySQL/index.php
per inserire delle news php in un sito in flash e funziona tutto correttamente, ora però sto provando a far comparire anche l'immagine della news ma non ci riesco, perchè nel tutorial non c'è questa parte e sto diventando matto a cercare di farla comparire.
Sul forum ho letto che bisogna creare un mc vuoto e dargli un nome all'istanza
quello che non funziona è la riga:
foto.htmlText += '">';
PRIMO KEYFRAME:
stop();
Stage.showMenu = false;
Stage.scaleMode = 'noScale';
System.useCodepage = true;
file = "http://www.sito.it/new/images/include_scroll_news_dentroflash.php";
news = new LoadVars();
news.onLoad = function(success){
if(success){
play();
}
}
news.load(file);
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;
}
}
SECONDO KEYFRAME:
stop();
function News(){
if(i==news.tot){
i = 0;
}
txtNews.htmlText = ''+news["titolo"+i]+'
';
txtNews.htmlText += ''+news["sottotitolo"+i]+'
';
txtNews.htmlText += news["testo"+i];
foto.htmlText += '">';
i++;
}
News();
time(fadeIn);

Rispondi quotando