Hallo FF Leuz!
Ich wollte jedem erzeugtem MC ein actionscript zuweisen:
ActionScript:
for (var i=0; i<count; i++) {//count -> anzahl der figuren
var mc = createEmptyMovieClip("figurcontainer"+i,i);// mc kriegt den erzeugten MovieClip / [i]-> nummer der figur
mc.createEmptyMovieClip("kopf",3).loadMovie("kopf.swf");
mc.createEmptyMovieClip("haende",4).loadMovie("haende.swf");
mc.createEmptyMovieClip("koerper",1).loadMovie("koerper.swf");
mc.createEmptyMovieClip("unter",2).loadMovie("unter.swf");
mc._x = 30*i;//figurcontainer positionierung
mc._y = 30*i;//figurcontainer positionierung
mc.kopf._x = 0;//kopf_x positionierung
mc.kopf._y = 0;//kopf_y positionierung
mc.koerper._x = 20;//koerper_x positionierung
mc.koerper._y = 60;//koerper_y positionierung
mc.haende._x = -30;//haende_x positionierung
mc.haende._y = 75;//haende_y positionierung
mc.unter._x = -42;//unter_x positionierung
mc.unter._y = 120;//unter_y positionierung
setProperty("mc", _xscale, 40);//skallierung der figur
setProperty("mc", _yscale, 40);//skallierung der figur
mc.onLoad=function(){//erzeuge onLoad function auf mc
delay = 10;
}
mc.onEnterFrame=function(){//erzeuge onEnterFrame function auf mc
difx = targetx - this._x;
dify = targety - this._y;
this._x += difx / delay;
this._y += dify / delay;
}
mc.onMouseDown=function(){//erzeuge onMouseDown function auf mc
targetx = _root._xmouse;
targety = _root._ymouse;
}
}//end of for schleife - für die dynamische erzeugung der figuren
stop();
allerdings geht das irgendwie nicht mit den functionen

dieser teil des scripts funktioniert nicht
ActionScript:
mc.onLoad=function(){//erzeuge onLoad function auf mc
delay = 10;
}
mc.onEnterFrame=function(){//erzeuge onEnterFrame function auf mc
difx = targetx - this._x;
dify = targety - this._y;
this._x += difx / delay;
this._y += dify / delay;
}
mc.onMouseDown=function(){//erzeuge onMouseDown function auf mc
targetx = _root._xmouse;
targety = _root._ymouse;
}