Сделал подобие конструктора.

Код AS1/AS2:
public function create (cls, nm, pref:String, pX, pY:Number):MovieClip
{
var *Nmc:MovieClip = null;
if( cls =="peshka"){
* * * * * *if(pref=="W"){
Nmc=_root.Figures.attachMovie(cls, nm, _root.Figures.getNextHighestDepth(), {_x: pX, _y: pY, _first: true, _fcolor: "white"});
Nmc.gotoAndPlay(2);
Nmc.onRelease = _root.Testf;
Nmc.ASelection._visible = false;
}
else{
Nmc =_root.Figures.attachMovie(cls, nm, _root.Figures.getNextHighestDepth(), {_x:pX, _y: pY, _first: true, _fcolor: "black"});
Nmc.onRelease = _root.Testf;
Nmc.ASelection._visible = false;
}
}
return(Nmc);
}
}
И вызываю

Код AS1/AS2:
this["Wpeshka_" + (j+1)] =Cfigure.create("peshka","Wpeshka_" + (j+1), "W", *j*60, 360);
Но в результате получаю ошибку.
The property being referenced does not have the static attribute.