Цитата:
|
Сообщение от Demand
this["nextb"+i].onRelease = function(){
dat.variable="date"+String(i);
news.variable="news"+String(i);
author.variable="author"+String(i);
loadVariablesNum("news.txt",0);
createObject("UIScrollBar","sb",0);
sb._targetInstanceName="news";
sb._x=900;
sb._y=162;
sb.scaleY=110;
};
Все это в цикле где переменная i меняется... но не работает, в чем дело? подскажите плз.
|

Код:
this["nextb"+i].onRelease = function(){
/* вот отсюда */
dat.variable="date"+i;
news.variable="news"+i;
author.variable="author"+i;
/* и до сих пор */
// это что вообще было???
//this.i = i; вот так много проще...
loadVariablesNum("news.txt",0);
this.createObject("UIScrollBar","sb",0);
this.sb._targetInstanceName="news";
this.sb._x=900;
this.sb._y=162;
this.sb.scaleY=110;
};