for example i defined an array like that :
var ArrayFlake:Array = new Array();
i have a random int which will define how many movieclip i
will have to
store into my array :
where "i" is defined later.
i have 1 movieClip in my library call 'flake'
so i do not want to do :
var mcFlake1:MovieClip = new flake;
var mcFlake2:MovieClip = new flake;
var mcFlake3:MovieClip = new flake;
but more :
and after create the new instance of mcFlake1, mcFlake2, ...
and this i do not know for now..
i can not write for each(flake:* in ArrayFlake)
var ArrayFlake:MovieClip = new flake;
and later us the 'mcFlake1','mcFlake2',...
> how can i declare an array of movieclips ?
First, as a best practise, I try to reserve single-letter
variables for counters. Second, as a best practise, properties
should be prefaced with a lower-case letter; uppercase is usually
reserved for class names. And third, it's "addChild", not