Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cant see my attached movies

Status
Not open for further replies.

silverswim

Programmer
Oct 17, 2001
50
GB
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(&quot;cell&quot;,&quot;c&quot;+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.

 
small thing

trace(cells_array[k].y);
should be ._y

does this help
 
Thanks billwatson, that makes sense.
Also realized that hadn't checked export for actionscript when I defined the mc in the first place. Its working now. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top