Hi,
You can try something like this, its easy enough to decipher
PHP Code:var Names:Array = ["first", "crap", "fart", "idiot", "smelly"];
var NumberRequired = 5;
for (var m = 0; m < NumberRequired; m++)
{
duplicateMovieClip("cat", "cat" + m, this.getNextHighestDepth());
this["cat" + m]._y = 50 * (m + 1);
this["cat" + m]._x = 100;
this["cat" + m].name_txt.htmlText = Names[m];
this["cat" + m].onRollOver = function(){
trace(this._name + " - " + this.name_txt.htmlText);
};
}




Reply With Quote