i think my last post might have been confusing so here is a simplified version:
var movies = new Array();
movies[0] = 'overview';
movies[1] = 'east';
movies[2] = 'surveys';
movies[3] = 'core';
loadThumbs();
function loadThumbs()
{
len = movies.length;
for (i=0; i<len; i++)
{
this.attachMovie(movies* + '_thumb', 'mc' + movies*, 100 + i);
eval("this.mc" + movies*)._x = i * 100;
eval("this.mc" + movies*).stop();
}
}
now, i need the to create dynamic functions that will play() the movieclips on roll over…
any comments on the code??? like i said b4 i’m coming from php and although there is definitely a familiarity, code optimizations etc… are appreciated…
what i tried to do is create this function within the loadThumbs()function, however movies* is undefined
eval("this.mc" + movies*).onRollOver = function()
{
//eval("mc" + movies*).play();
trace movies*);
}
take care,
snx :hr: