actionscript 3 - Doing a For on a function converting to a MovieClip -
i need alot of informations @ once, , tried this:
function pegainfo(m:movieclip, i:int){}
and e tried this:
var i:int for(i=0;i<10;i++){ pegainfo(["l"+i], i); }
is there can do?
i think you're looking this:
var i:int for(i=0;i<10;i++){ // assumes loop in same scope display // list contains clips you're trying access pegainfo(this["l"+i], i); }
Comments
Post a Comment