2,278
社区成员




function createNewsList(total, array){
var movieclip = newsList.news.newMc;
var i = 0;
var mc;
var titleVar;
var delay;
while (i < total){
var depth = movieclip._parent.getNextHighestDepth();
movieclip.duplicateMovieClip("new"+i,depth);
mc = eval("newsList.news.new" + i);
mc._x = -360;
mc.id = i;
titleVar = "<b>" + array[0][i].date + " - " + array[0][i].title + "</b>";
mc.titleTxt.htmlText = titleVar;
mc.descTxt.htmlText = array[0][i].shortdesc+array[0][i].link;
delay = 100 * i;
setTimeout(setClipPos,delay,i,mc);
if (array[0][i].link != undefined){
mc.link = array[0][i].link;
mc.bg.onPress = function (){
_root.showPop("产品介绍",mc.link);
//getURL(mc.link, "_blank");
};
mc.bg.onRollOver = function (){
this.up = true;
this.play();
};
mc.bg.onRollOut = mc.bg.onReleaseOutside = function (){
this.up = false;
this.play();
};
} // end if
++i;
} // end while
arrangeArticles(movieclip, total);
}