Hi, can someone tell me how to do it:
[code=actionscript]

private function init_mc(_container){
_envir = new Enviroiment()
for (var i=0;i<3;i++){
var _newMC:MovieClip = new ball
_container.addChild(_newMC)
mcArray.push(_newMC)
_newMC.x = 100*i

_envir.init(mcArray[i],10-i*50,-100,0)
}

[/code]

when i trace (_newMC) i have "instance5,instance7,instance9" but i want name of this mc,
what i do wrong... only one mc is using _envir.init() why...