silverswim
Programmer
Hi ,can someone pls tell me why this code shows nothing on playback; I was expecting to see a vertical line of mc instances on the leftish side of the stage.
Ok: theres an mc in the library called cell.
then there is this code in the first frame of the root movie
init();
function init(){
var ydiff= 0;
cells_array= new Array();
var max = 30;
for (k=0; k<max; k++){
cells_array[k]=attachMovie("cell","c"+k,k);
cells_array[k]._x=250;
cells_array[k]._y=0 +ydiff;
ydiff += 1;
trace(cells_array[k].y);
}
}//end init
- trace just gives 30 undefined's.?
Thanks in advance.
Ok: theres an mc in the library called cell.
then there is this code in the first frame of the root movie
init();
function init(){
var ydiff= 0;
cells_array= new Array();
var max = 30;
for (k=0; k<max; k++){
cells_array[k]=attachMovie("cell","c"+k,k);
cells_array[k]._x=250;
cells_array[k]._y=0 +ydiff;
ydiff += 1;
trace(cells_array[k].y);
}
}//end init
- trace just gives 30 undefined's.?
Thanks in advance.