ciao and..grazie per avermi risposto!
ho provato così però non succede niente..tutto come prima!
Posto il codice così magari potrebbe essere aiuto per capire meglio:
codice:
this.onLoad = function() {
//PATH DEL FILE PHP
path = "show_news.php";
loadVariablesNum(path, 0);
_root.ok.text = path.row_cnt;
//CREO DEGLI ARRAY CONTENITORI CHE VERRANNOP RIEMPITI NON APPENA SARANNO PERVENUTI I DATI
dataArray = new Array();
titleArray = new Array();
newsArray = new Array();
};
this.onData = function() {
testoNews.html = 1;
dataArray = varData.split("|");
titleArray = varTitolo.split("|");
newsArray = varNews.split("|");
if (dataTitolo.length-1<3) {
for (var i = 0; i<dataArray.length-1; i++) {
//duplichiamo i movieclip...
duplicateMovieClip("mc", "mc"+i, i);
//li posizioniamo in verticale...
this["mc"+i]._x = 50;
//this["mc"+i]._y = 50+i*20;
this["mc"+i].data_title.text = titleArray[i];
//gli assegnamo le funzioni prototype
this["mc"+i].rollovers();
this["mc"+i].rollouts();
this["mc"+i].releases(dataArray[i], titleArray[i], newsArray[i]);
}
} else {
for (var i = 0; i<3; i++) {
duplicateMovieClip("mc", "mc"+i, i);
//this["mc"+i]._x = 50;
this["mc"+i]._y = 300+i*20;
this["mc"+i].data_title.text = titleArray[i];
this["mc"+i].rollovers();
this["mc"+i].rollouts();
this["mc"+i].releases(dataArray[i], titleArray[i], newsArray[i]);
}
}
};
MovieClip.prototype.rollovers = function() {
this.onRollOver = function() {
c = new Color(this);
c.setRGB(0xcc0000);
};
};
MovieClip.prototype.rollouts = function() {
this.onRollOut = function() {
c = new Color(this);
c.setRGB(0x000000);
};
};
MovieClip.prototype.releases = function(dataTesto, newstitolo, newstesto) {
this.onRelease = function() {
_root.testoNews.html = true;
_root.testoNews.htmlText = "<font color='#FF0000'>"+dataTesto+"</font>"+newline+newstitolo+"<font color='#666666'>"+newline+newstesto+"</font>";
};
};
Ormai ho perso le speranze..